Nextion library contains compile errors
AirTobe91 opened this issue · 2 comments
Hello,
I have a ESP8266 and Nextion Intelligent 7,0" display.
I have included the Nextion.h in a really simple project with only one button on the display.
When compiling the program with Arduino IDE it states that there is a compile error in the NexRtc.cpp and NexUpload.cpp.
I also tried to compile it with VSCode and PlatformIO, but here the same error occurs.
There are functions which have a return value of "bool" or "u_int32" which doesn't have return values. This should be fixed.
I'm using the current master of the project.
Thanks!
@AirTobe91 Hi there. I am considering porting this library to Onion Omega 2. I basically want to create a display driver but don't want to invest much time if the current library is buggy.
There are functions which have a return value of "bool" or "u_int32" which doesn't have return values. This should be fixed.
How can a function have a return value and not have a return value? Could you please be clearer?
@AirTobe91 I also had an issue with this library.
In the NexRtc.cpp file, there are functions that don't return values (mainly true
/false
), you can easily add this to fix the compile errors. If necessary, you can remove the NexUpload.cpp file. It's just used to upload the tft file from the SD card to the Nextion MCU.