Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Projetv0 greenhouse_proj ProjetLong_Serre_V3 ProjetLong_Serre_V3_1 ... more
Homepage
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();
}
}