# Transparent Graphical OLED Sample Errors with ESP32 ThingPlus

**URL:** <https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569>\
**Category:** Displays\
**Created:** [January 3, 2020, 10:53pm UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569 "2020-01-03T22:53:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grimstone](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Grimstone](https://community.sparkfun.com/u/Grimstone)\
**Post date:** [January 3, 2020, 10:53pm UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569/1 "2020-01-03T22:53:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![El\_Duderino](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/el_duderino/32/6367_2.png) [@El\_Duderino](https://community.sparkfun.com/u/El_Duderino)\
**Post date:** [January 6, 2020, 6:42pm UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569/2 "2020-01-06T18:42:20Z")

</div>

Hi Grimstone,

The issue here is this error:

```auto
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](https://learn.sparkfun.com/tutorials/transparent-graphical-oled-breakout-hookup-guide#examples) from our Hookup Guide for the [[Transparent Graphical OLED Breakout](https://www.sparkfun.com/products/15173) or are you trying to use a different example or a customized version of it?]([https://www.sparkfun.com/products/15173](https://www.sparkfun.com/products/15173))]([https://learn.sparkfun.com/tutorials/transparent-graphical-oled-breakout-hookup-guide#examples](https://learn.sparkfun.com/tutorials/transparent-graphical-oled-breakout-hookup-guide#examples))

---

<div class="post-metadata">

**Author:** ![Grimstone](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Grimstone](https://community.sparkfun.com/u/Grimstone)\
**Post date:** [January 10, 2020, 1:59pm UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569/3 "2020-01-10T13:59:54Z")

</div>

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_

---

<div class="post-metadata">

**Author:** ![El\_Duderino](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/el_duderino/32/6367_2.png) [@El\_Duderino](https://community.sparkfun.com/u/El_Duderino)\
**Post date:** [January 10, 2020, 8:49pm UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569/4 "2020-01-10T20:49:07Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![Grimstone](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@Grimstone](https://community.sparkfun.com/u/Grimstone)\
**Post date:** [January 16, 2020, 3:15am UTC](https://community.sparkfun.com/t/transparent-graphical-oled-sample-errors-with-esp32-thingplus/38569/5 "2020-01-16T03:15:34Z")

</div>

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.
