Library for Modtronix im4OLED board with 128x64 OLED and 4 buttons. For details, see product page http://modtronix.com/im4oled.html. Is a clone of Adafruit_GFX library, with some additional code added.
Fork of Adafruit_GFX by
Diff: mx_ssd1306.cpp
- Revision:
- 23:44309099c532
- Parent:
- 22:f63aeb3769b5
--- a/mx_ssd1306.cpp Tue Oct 20 17:18:02 2015 +1100 +++ b/mx_ssd1306.cpp Wed Oct 21 14:49:56 2015 +1100 @@ -341,7 +341,7 @@ { setAllDirty(); //Set whole display as dirty -#if defined(OLED_NO_VECTOR) +#if (OLED_USE_VECTOR==0) for(uint i=0; i<sizeof(buffer); i++) { buffer[i] = 0; } @@ -367,7 +367,7 @@ void MxSSD1306::splash(void) { -#ifndef OLED_NO_SPLASH +#if (OLED_HAS_SPLASH==1) uint8_t adaFruitLogo[64 * 128 / 8] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -439,7 +439,7 @@ setAllDirty(); //Set whole display as dirty -#if defined(OLED_NO_VECTOR) +#if (OLED_USE_VECTOR==0) memcpy(&buffer[0], &adaFruitLogo[0], sizeof(adaFruitLogo)); #else std::copy(