Display a static bitmap on the OLED.
Dependencies: SSD1308_128x64_I2C
Diff: main.cpp
- Revision:
- 0:f00fb951da7f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 11 16:42:43 2019 +0000 @@ -0,0 +1,16 @@ +#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; +} \ No newline at end of file