DEV-12923

Published 04 June 2014
microview
microview
introduction
introduction
overview
overview
memory map
memory map
ssd1306
ssd1306
screen buffer
screen buffer
Diagram showing the BITs in a BYTE of the screen buffer corresponding to the OLED’s X,Y position.
Based on the above illustration, a pixel turned on at X=2 and Y=3 means BYTE 2 of the screen buffer has
data of 0x08 (hex).
Two pixels at X=2,Y=3 and X=2,Y=2 turned on means BYTE 2 of the screen buffer has data of 0x0c (hex).
To draw a straight line of 5 pixels starting from 10,2 to 10,6 , the following C code show a pixel by pixel
way on how to accomplish this:
uView.pixel(10,2);
uView.pixel(10,3);
uView.pixel(10,4);
uView.pixel(10,5);
uView.pixel(10,6);
the MicroView library allows you to draw lines by specifying the the start and end coordinates. The above
line could be drawn with this simple one line command:
uView.line(10,2,10,6);
In order for the library to perform extremely fast mathematical operations on the screen buffer (more
than 100 frames per second), calls to the drawing functions within the MicroView library does not
immediately transfer the contents of screen buffer to the SSD1306 controller. A
display() command
is required to instruct the library to perform the bulk transfer from the screen buffer to the SSD1306
controller:
uView.display();
This function takes the whole screen buffer in the ATmega328P and transfers it (via SPI bus,
programmed at 8Mhz) to the internal memory of the SSD1306. As soon as the memory is being
transferred, the pixels corresponding to the screen buffer will show up on the OLED display.
4
/
16
/
201
5
htt
p
://learn.microview.io/intro/
g
enera
l
-overview-of-microview.htm
l

DEV-12923

Mfr. #:
Manufacturer:
SparkFun
Description:
Display Development Tools MIcroView OLED Arduino Module
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet