Think i got a problem with avr/pgmspace.h when i triying port code

I trying to get this code to work on spark: https://github.com/jrowberg/i2cdevlib/blob/master/Arduino/SSD1308/fixedWidthFont.h

Anyone knows how to get it to work, i getting “expected initializer before 'PROGMEM” when i trying to run it in the Web IDE, only that file/code and removed the “#include <avr/pgmspace.h>” line.

1 Like

PROGMEM is an AVR only thing. Try changing the array types to const unsigned int instead. :smile:

1 Like

A quick search on the forum should have returned this https://community.spark.io/t/fix-for-include-avr-pgmspace-h/2269

thanks works with const unsigned int…

1 Like