-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32 board - SoftwareSerial #4
Comments
Thanks for the bug report and the idea, it can be extended to the ESP8266 I think... I will take a peek on it on the weekend. Thanks |
I made some quick and dirty changes to support UART2 of the ESP32. Code needs to be cleaned up. in ft817.h:line 286: #define HAVE_ESP 1 line 335: class FT817 in ft817.cpp:line 29: #include "ft817.h" #ifdef HAVE_ESP #define dlyTime 5 // delay (in ms) after serial writes FT817::FT817(){ } // nothing to do when first instanced /****** SETUP ********/ #ifndef HAVE_ESP // similar to Serial.begin(baud); command in main.cpp:line 14: #include "ft817.h" #ifndef HAVE_ESP line 29: void setup()
} |
Sorry for the long delay... I will be playing with this this weekend and will try to simulate here an fixing. |
Hi Pavel,
the code does not successfully compile for ESP32 board. Error message is
src/main.cpp:14:28: fatal error: SoftwareSerial.h: No such file or directory
It looks like that SoftwareSerial is not supported out of the box for ESP32 boards. May be there are some special libraries for SoftwareSerial on ESP32, but nevertheless it might be more efficient to use one of the three available UARTs (UART0, UART1 and UART2) of the ESP32. I am wondering how to adapt the code accordingly but I am not sure (and may be not skilled enough) to start.
The text was updated successfully, but these errors were encountered: