SmartCampus / Mbed OS OLED_static_bitmap

Dependencies:   SSD1308_128x64_I2C

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "SSD1308.h"
00003 #include "bitmap.h"
00004 #include "bitmap2.h"
00005 #include "bitmap3.h"
00006 
00007 I2C i2c(PB_9,PB_8);                                                             //The OLED uses port I2C to connect to the L073RZ
00008 SSD1308 oled = SSD1308(&i2c, SSD1308_SA0);
00009 
00010 int main() {
00011     //oled.setDisplayInverse();
00012     oled.setDisplayNormal();
00013     oled.writeBitmap((std::uint8_t *) bitmap3);
00014 
00015     return 0;
00016 }