winneymj / ESP8266_SSD1322

Arduino library for 256x64 OLED ER-OLED032-1 (SSD1322 driver)
MIT License
31 stars 17 forks source link

example code does not compile #7

Open DaleSchultz opened 5 years ago

DaleSchultz commented 5 years ago

supplied example no longer compiles.

C:\Ard\libraries\ESP8266_SSD1322\ESP8266_SSD1322.cpp: In member function 'void ESP8266_SSD1322::fastDrawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint8_t)':

C:\Ard\libraries\ESP8266_SSD1322\ESP8266_SSD1322.cpp:879:59: error: no matching function for call to 'min(int, int16_t&)'

register uint16_t hInRows = min(SSD1322_LCDHEIGHT - y, h);

CuriousTimo commented 4 years ago

I made a pull request to fix this: https://github.com/winneymj/ESP8266_SSD1322/pull/9