Compilation error showing

I'm getting this error on arduino cloud:

/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32doit-devkit1:DebugLevel=none,FlashFreq=80,UploadSpeed=921600 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/719710082/build --build-path /tmp/arduino-build-930D19972D51DB0F5B52C7228404F10A --library /mnt/create-efs/webide/13/e8/13e89aac54e7d22b04665ae02741cfff:farhan74/libraries_v2/SimpleTimer --library /mnt/create-efs/webide/13/e8/13e89aac54e7d22b04665ae02741cfff:farhan74/libraries_v2/TimerOne /tmp/719710082/Smart_helmet_jul06a

Using library espsoftwareserial_6_16_1 at version 6.16.1 in folder: /home/builder/opt/libraries/espsoftwareserial_6_16_1

Using library aistarter_1_0_1 at version 1.0.1 in folder: /home/builder/opt/libraries/aistarter_1_0_1

In file included from /tmp/719710082/Smart_helmet_jul06a/Smart_helmet_jul06a.ino:23:0:

/home/builder/opt/libraries/latest/aistarter_1_0_1/src/TimerOne.h:38:20: fatal error: avr/io.h: No such file or directory

compilation terminated.

Error during build: exit status 1

You can't use the TimerOne library on an ESP32 processor. You need a different timer library.

1 Like

oh, okay. can you please suggest a library for esp32 on arduino cloud. I'm working with 3 functions and want to run them independently.

ESP32 has a complete multi-tasking operating system (FreeRTOS) built in. Use that.

1 Like

thanks

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