sparkfun / SparkFun_Qwiic_OLED_Arduino_Library

Arduino Library for SparkFun's OLED Qwiic (I²C) boards
https://docs.sparkfun.com/SparkFun_Qwiic_OLED_Arduino_Library/introduction/
Other
6 stars 7 forks source link

Added #include <avr/pgmspace.h> #7

Closed tomy983 closed 2 years ago

tomy983 commented 2 years ago

Without this the examples did not compile either using Arduino IDE 2.0 or VSCode with platformIO with Arduino Nano 33 BLE

ghost commented 2 years ago

The include of pgmspace.h is determined in the file src/res/qw_pgm_arduino.h, since different platforms have different include paths (or none at all). All Arduino specific code for resources is isolated in that header.

I've added a fix - the use of a generic MBEDOS define worked for Artemis boards, but was also causing non-artemis boards that used mbed to have the incorrect include. Moved to using an Apollo3 specific define.

This is fixed and checked in - will roll a release later today