Display a static bitmap on the OLED.
Dependencies: SSD1308_128x64_I2C
main.cpp
- Committer:
- dcj001
- Date:
- 2019-12-11
- Revision:
- 0:f00fb951da7f
File content as of revision 0:f00fb951da7f:
#include "mbed.h" #include "SSD1308.h" #include "bitmap.h" #include "bitmap2.h" #include "bitmap3.h" I2C i2c(PB_9,PB_8); //The OLED uses port I2C to connect to the L073RZ SSD1308 oled = SSD1308(&i2c, SSD1308_SA0); int main() { //oled.setDisplayInverse(); oled.setDisplayNormal(); oled.writeBitmap((std::uint8_t *) bitmap3); return 0; }