Arduino Nano ESP32 util/delay.h Error

I'm using a VFD display from noritake, specifically a GU-7000, and their library from here.

I had the display working on my Arduino Nano, but when I switched over to my Arduino Nano ESP32, I started running into issues. I have tried a few things for about an hour or so with no luck.

I guess what is confusing, is that my Nano finds (or still compiles) #include <util/delay.h> but my nano ESP32 cannot?

Full error message:

/private/var/folders/jd/_9zpv4fn2w3_hh_zvgw4kp740000gn/T/.arduinoIDE-unsaved2024312-13913-63kv5p.0lbks/sketch_apr12b/sketch_apr12b.ino:1:10: fatal error: util/delay.h: No such file or directory
 #include <util/delay.h>
          ^~~~~~~~~~~~~~
compilation terminated.
exit status 1

Compilation error: util/delay.h: No such file or directory

same code on my Nano

The code on the site that you link to does not seem to #include delay.h so why are you trying to #include it ?

" #include <util/delay.h> "

What're you doing that for?

These files have it for me.

just to show that is works for my Nano but not my ESP32 Nano.
It's a header included in a library I'm trying to use. I thought I could simplify my problem and confusion with the test code I pasted

Changing the selected board in the Arduino IDE causes the IDE to look in different paths for some libraries. Thus, what compiles for one board may not compile for another

You still have not answered why you are #including delay.h

Ahh, that's good to know. Any tips? In my post above, I show that the library I'm using calls that header file.

If I comment out all the #include <util/delay.h> lines (only two) then I run into the same error, but with this header:
#include <avr/pgmspace.h>

#include <avr/pgmspace.h>

That is plainly a library intended to be used with AVR processors such as that found on the classic Nano. The Nano ESP32 does not, of course, use an AVR processor, hence the problem

My conclusion would be that the libraries that you are using are not compatible with the ESP32 processor

Darn, a bit disappointing, but thanks for the info

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.