datasith / Ai_Ardulib_SSD1306

Library for using SSD1306-powered OLED displays in the Arduino IDE.
MIT License
56 stars 22 forks source link

Add const keyword to ACROBOT[] in examples #11

Closed stawel closed 5 years ago

stawel commented 5 years ago

In arduino IDE 1.8.5 when compiling for atmega328p I'm getting this error:

DrawLogo:24: error: variable 'ACROBOT' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
 static unsigned char ACROBOT[] PROGMEM ={
                                ^