Skip to content
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

NexUpload.cpp #30

Open
Chris685 opened this issue Dec 23, 2016 · 2 comments
Open

NexUpload.cpp #30

Chris685 opened this issue Dec 23, 2016 · 2 comments

Comments

@Chris685
Copy link

It's not possible to compile for some Arduino Boards which are not compatible with the Libary "SoftwareSerial". Probably it would be good, to switch off the #include from the config-File.

File NexUpload.cpp.
17 //#include <SoftwareSerial.h>
18
19 //#define USE_SOFTWARE_SERIAL
20 #ifdef USE_SOFTWARE_SERIAL

Comment out the Line 17 to compile for Arduino DUE which is using the 3 Uarts.

Thanks

@DrStein99
Copy link

I had to remove the upload.* files out of my Nextion library directory, because my compiler was throwing out "SPI.H" errors, that I was too impatient to debug. I never used this upload function - and considering how reliable the rest of the library functions are, I am guessing this function works in the same unpredictable fashion.

@vaewyn
Copy link

vaewyn commented Jan 22, 2019

I just moved the #include into the #ifdef on the current version:
#ifdef USE_SOFTWARE_SERIAL
#include <SoftwareSerial.h>
SoftwareSerial dbSerial(3, 2); /* RX:D3, TX:D2 */
#define DEBUG_SERIAL_ENABLE
#endif

Works great with my ESP32 and 8266 then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants