I copied your code to C:\Users\\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools
(renamed the previous ..\tools directory)
I get this error message:
In file included from sketch\Blink.ino.cpp:1:0:
C:\Users\<user>\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32/Arduino.h:32:31: fatal error: freertos/FreeRTOS.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.
Please advise.
EDIT:
I tried also in PlatformIO, after having copied your code to C:\Users\.platformio\packages\framework-arduinoespressif32\tools
I get an equivalent error message:
In file included from src\main.cpp:1:0:
C:\Users\Egil\.platformio\packages\framework-arduinoespressif32\cores\esp32/Arduino.h:32:31: fatal error: freertos/FreeRTOS.h: No such file or directory
compilation terminated.
EDIT 2:
I finally figured this out.
The correct way to install these libraries is not to replace the entire ..\tools directory but to replace the five individual files provided in your repo.
(I recommend copying/renaming the original ..\tools directory first)
Doing this I got it working now with PlatformIO. Thank you!
(Arduino IDE on Windows 10)
I copied your code to C:\Users\\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\tools
(renamed the previous ..\tools directory)
I get this error message:
Please advise.
EDIT: I tried also in PlatformIO, after having copied your code to C:\Users\.platformio\packages\framework-arduinoespressif32\tools
I get an equivalent error message:
EDIT 2: I finally figured this out. The correct way to install these libraries is not to replace the entire ..\tools directory but to replace the five individual files provided in your repo. (I recommend copying/renaming the original ..\tools directory first) Doing this I got it working now with PlatformIO. Thank you!