olikraus / ucglib

Arduino True Color Library for TFTs and OLEDs
https://github.com/olikraus/ucglib/wiki
Other
261 stars 76 forks source link

avr-gcc 5.4 does not support PROGMEM for typedef #99

Open deepfryed opened 5 years ago

deepfryed commented 5 years ago

Arduino/libraries/Ucglib/src/clib/ucg.h:120:25: internal compiler error: in type_hash_canon, at tree.c:6953 typedef uint8_t PROGMEM ucg_pgm_uint8_t;

It needs to be re-defined as a macro me thinks.

deepfryed commented 5 years ago

yes that seems to work

define ucg_pgm_uint8_t uint8_t PROGMEM

Instead of

typedef uint8_t PROGMEM ucg_pgm_uint8_t;

deepfryed commented 5 years ago

perhaps related, Ucglib_ILI9341_18x240x320_HWSPI doesn't work but Ucglib_ILI9341_18x240x320_SWSPI does, I may have to get the logic analyzer out.

deepfryed commented 5 years ago

Ucglib_ILI9341_18x240x320_HWSPI was a clock issue, sorted it out. I have a 12MHz crystal on my Chinese nano :/