Compile error in Sparkfun_Qwiic_OLED library

I just received the Qwiic OLED - (1.3in., 128x64) display and when testing I’m getting a compile error in the library. I installed Sparkfun_Qwiic_OLED v1.0.15. I’m using the Arduino IDE v2.3.7 and connected the display to an older RedBoard from the Sparkfun Inventor Kit. I am running example #1 and only changed one line to uncomment “Qwiic1in3OLED myOLED;” When I compile I get the error below:

[user]\Documents\Arduino\libraries\SparkFun_Qwiic_OLED_Arduino_Library\src\qwiic_grch1120.cpp:51:10: fatal error: map: No such file or directory
#include
^~~~~
compilation terminated.

map seems to be a standard library and I can’t the standard libraries in the Arduino IDE library list to reinstall. Any suggestions on where to look? Or is something else going wrong?

Thanks, Bryan

The older Redboards use an older architecture, the quickest fix is to revert to version 1.0.10 of the library, which doesn’t have the dependency:

  1. In Arduino IDE, go to SketchInclude LibraryManage Libraries

  2. Search for “SparkFun Qwiic OLED”

  3. Find the installed version (currently 1.0.15) and select version 1.0.10 from the dropdown

  4. Click Install to downgrade

Thanks TS. I’ll give that a try.

I’m using the old RedBoard for trying out the board. The actual project I plan to use it in has a newer board, an Arduino pro mini, so I’ll go back to current library for that.

1 Like