bitbank2/OneBitDisplay

Compilation error for Arduino UNO

joex92 opened this issue · 1 comments

I just tried to compile the multi_oled_demo for Arduino UNO and got this error:

In file included from D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\examples\multi_oled_demo\multi_oled_demo.ino:6:0:
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src/OneBitDisplay.h: In constructor 'ONE_BIT_DISPLAY::ONE_BIT_DISPLAY()':
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src/OneBitDisplay.h:120:127: warning: overflow in implicit constant conversion [-Woverflow]
     ONE_BIT_DISPLAY() { memset(&_obd, 0, sizeof(_obd)); _obd.iFG = 1; _obd.render = 1; _obd.type = OLED_128x64; _obd.iSpeed = 400000;}
                                                                                                                               ^~~~~~
In file included from D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp:46:0:
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.h: In constructor 'ONE_BIT_DISPLAY::ONE_BIT_DISPLAY()':
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.h:120:127: warning: overflow in implicit constant conversion [-Woverflow]
     ONE_BIT_DISPLAY() { memset(&_obd, 0, sizeof(_obd)); _obd.iFG = 1; _obd.render = 1; _obd.type = OLED_128x64; _obd.iSpeed = 400000;}
                                                                                                                               ^~~~~~
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp: In function 'GFXglyph* pgm_read_glyph_ptr(const GFXfont*, uint8_t)':
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp:173:25: error: 'pgm_read_pointer' was not declared in this scope
   return &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                         ^~~~~~~~~~~~~~~~
D:\Users\mmaru\Documents\Arduino\libraries\OneBitDisplay\src\OneBitDisplay.cpp:173:25: note: suggested alternative: 'pgm_read_ptr'
   return &(((GFXglyph *)pgm_read_pointer(&gfxFont->glyph))[c]);
                         ^~~~~~~~~~~~~~~~
                         pgm_read_ptr
exit status 1
Error compilando para la tarjeta Arduino Uno.

What could be the problem? I just installed the libraries from the Arduino library manager, just that and what it asked me to install along it... should I install another library?

just checked #31 and it worked... sorry...