Transparent Graphical OLED Sample Errors with ESP32 ThingPlus

First, I am new to the ESP32 Thing Plus, Sparkfun’s Transparent OLED, and this forum. I typically use standard Arduinos such as Uno or Mega for the last 4 years. Thus, I expect some learning curve in transitioning. I did some forum searches and can’t find my exact error on multiple libraries. I apologize if I somehow missed it. I am just not sure how to correct. I purchased the exact items off the example list, tested the board with the blink sketch and Wifi scanner sketch. Both work fine. Then I get to the OLED HyperDisplay example sketches and things get wonky. Not sure what is going on.

My Error:

Arduino: 1.8.10 (Windows 10), Board: “Adafruit ESP32 Feather, 80MHz, 921600, None, Default”

Multiple libraries were found for “HyperDisplay_UG2856KLBAG01.h”

In file included from C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Library\src/hyperdisplay.h:39:0,

Used: C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Transparent_Grahical_OLED_Library

Multiple libraries were found for “HyperDisplay_SSD1309.h”

Used: C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_SSD1309_Arduino_Library

from C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_SSD1309_Arduino_Library\src/HyperDisplay_SSD1309.h:19,

Multiple libraries were found for “hyperdisplay.h”

Used: C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Library

from C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Transparent_Grahical_OLED_Library\src/HyperDisplay_UG2856KLBAG01.h:19,

from C:\Users\cbail\OneDrive\Documents\Arduino\esp32_display_test\esp32_display_test.ino:36:

C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Library\src/util/font5x7.h:22:26: fatal error: avr/pgmspace.h: No such file or directory

compilation terminated.

exit status 1

Error compiling for board Adafruit ESP32 Feather.

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.

I have looked in my libraries directory, I only have a single copy of each of the three HyperDisplay libraries. I have looked in the sub directories (src) and each has a single .cpp and .h file. Not sure how to fix. Help please.

Hi Grimstone,

The issue here is this error:

C:\Users\cbail\Documents\Arduino\libraries\SparkFun_HyperDisplay_Library\src/util/font5x7.h:22:26: fatal error: avr/pgmspace.h: No such file or directory

This is because HyperDisplay’s standard font will only work on AVR-based microcontrollers like an Arduino Mega. You should not have any issues compiling and uploading code that does not use the standard font, though, and in a quick test I just performed on both Arduino v1.8.9 and 1.8.10 I did not have any compilation issues for the Display Test example for the ESP32 so I’m not positive what is triggering that error for you. Are you using [this example from our Hookup Guide for the [Transparent Graphical OLED Breakout or are you trying to use a different example or a customized version of it?](https://www.sparkfun.com/products/15173)](https://learn.sparkfun.com/tutorials/transparent-graphical-oled-breakout-hookup-guide#examples)

I have tried the one in the hookup guide which calls for the same ESP32 Thing Plus as I ordered. I have also tried the examples that came with the HyperDisplay_UG2856KLBAG01.h library. Both get me the same multiple libraries found, prmspace.h errors. Very frustrated. Bought everything plus additional sensors, an extra transparent OLED, spare LiPos, etc. figuring I would learn the HyperDisplay code and then go off to do my own thing after following the tutorial, but can’t get the basic tutorial to run. sigh

Hi again,

I’m not sure what would be causing the issue here since I’m not able to replicate it. You could try making sure you’re using the latest version of the ESP32 Boards Add-on as well as the latest version of the various HyperDisplay libraries and see if that helps. If not, you could also try re-installing at least the HyperDisplay libraries. One other suggestion is to try a different version of Arduino as some versions have strange compile syntax requirements that are either not present or fixed in other versions. Just for reference, in my testing I used Arduino 1.8.10 (I also tested on 1.8.5 and had no problems), v2.0.0 of HyperDisplay, v1.1.1 of HyperDisplay SSD1309 and v1.1.0 of HyperDisplay Transparent Grpahical OLED (UG2856KLBAG01).

Well I took it back to the way way beginning. Reinstalled Arduino, the drivers, the libraries, and recopied the program. This time it worked. Not sure where in the ether was the glitch, but I have a working display. Thank you for the help.