Open bntsp opened 6 years ago
It looks like the code was written for the 3.x.x versions of the esp8266-oled-ssd1306 library. Some small modifications are needed for compatibility with the 4.x.x versions of that library: https://github.com/ThingPulse/esp8266-oled-ssd1306/blob/master/UPGRADE-4.0.md
When i try to compile the example i get these errors:
/path/to/T8_V1.2_SH1106.ino: In function 'void drawImageDemo()': T8_V1.2_SH1106:164:77: error: invalid conversion from 'const char' to 'const uint8_t {aka const unsigned char}' [-fpermissive] display.drawXbm(34, 14, WiFi_Logo_width, WiFi_Logo_height, WiFi_Logo_bits); ^ In file included from /path/to/Documents/Arduino/libraries/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src/SH1106Wire.h:34:0, from /path/to/TTGO-T-Eight-ESP32-master/T8_V1.2_SH1106/T8_V1.2_SH1106.ino:29: /path/to/Documents/Arduino/libraries/ESP8266_and_ESP32_Oled_Driver_for_SSD1306_display/src/OLEDDisplay.h:175:10: note: initializing argument 5 of 'void OLEDDisplay::drawXbm(int16_t, int16_t, int16_t, int16_t, const uint8_t)' void drawXbm(int16_t x, int16_t y, int16_t width, int16_t height, const uint8_t xbm); ^ exit status 1 invalid conversion from 'const char' to 'const uint8_t {aka const unsigned char}' [-fpermissive]