HI,
i currenty work on a project with DOIT ESP32 DEVKIT V1
and i want to set up an UART communication with an Arduino MEGA
however the SoftwareSerial library has an error while compiling
(i did install the proper SoftwareSerial libraries for esp32)
ERROR message:
C:\Users\yahya\Documents\Arduino\libraries\SoftwareSerial-master\SoftwareSerial.cpp:41:27: fatal error: avr/interrupt.h: No such file or directory
compilation terminated.
Multiple libraries were found for "WiFi.h"
Used: C:\Users\yahya\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.57.0_x86__mdqgnx93n4wtt\libraries\WiFi
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Users\yahya\Documents\Arduino\libraries\SoftwareSerial-master
Not used: C:\Users\yahya\Documents\Arduino\libraries\EspSoftwareSerial-6.15.2
Not used: C:\Users\yahya\Documents\Arduino\libraries\EspSoftwareSerial-6.12.0
Not used: C:\Users\yahya\Documents\Arduino\libraries\EspSoftwareSerial
exit status 1
Error compiling for board DOIT ESP32 DEVKIT V1.
i checked for the "avr/interrupt.h" header and its fine
i even reinstalled the IDE but it still does it
in this project i use these libraries (idk if it matters)
It uses pins 14 and 15 to create a serial interface named Serial2 using 8 bits, no parity and 1 stop bit then outputs a message on the pins every second