A buffered display driver for the SSD1306 OLED controller. Please note that this is a work-in-progress; only very rudimentary drawing support is provided.
Dependents: Projetv0 greenhouse_proj ProjetLong_Serre_V3 ProjetLong_Serre_V3_1 ... more
Example of use:
#include "mbed.h" #include "ssd1306.h" #include "standard_font.h" #include "bold_font.h" SSD1306 oled(p8 /* cs */, p9 /* reset */, p14 /* dc */, p13 /* clock */, p11 /* data */); int main() { oled.initialise(); oled.clear(); oled.set_contrast(255); // max contrast oled.set_font(bold_font, 8); oled.printf("Heading\r\n"); oled.set_font(standard_font, 6); oled.printf("Hello World!\r\n"); oled.printf("Some more text here..."); oled.update(); while (1) { wait(2); oled.scroll_up(); oled.update(); } }
History
Completely changed the way fonts work and added printf(), putc() etc. Now only 8 pixel high fonts are supported, but multiple widths. Added auto-scrolling from the bottom of the display. Also replaced the original "smallfont" with two new fonts.
2013-02-09, by Byrn [Sat, 09 Feb 2013 16:43:49 +0000] rev 3
Completely changed the way fonts work and added printf(), putc() etc. Now only 8 pixel high fonts are supported, but multiple widths. Added auto-scrolling from the bottom of the display. Also replaced the original "smallfont" with two new fonts.
commit before initial publish
2013-02-05, by Byrn [Tue, 05 Feb 2013 21:21:22 +0000] rev 2
commit before initial publish
intiial commit;
2013-02-05, by Byrn [Tue, 05 Feb 2013 17:18:23 +0000] rev 1
intiial commit;
[mbed] converted /OLED/SSD1306
2013-02-05, by Byrn [Tue, 05 Feb 2013 09:46:58 +0000] rev 0
[mbed] converted /OLED/SSD1306