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

Nextion library contains compile errors #102

Open
AirTobe91 opened this issue Sep 1, 2021 · 2 comments
Open

Nextion library contains compile errors #102

AirTobe91 opened this issue Sep 1, 2021 · 2 comments

Comments

@AirTobe91
Copy link

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 AirTobe91 changed the title Nextion library causes compile error Nextion library contains compile errors Sep 1, 2021
@EyitopeIO
Copy link

@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?

@smartechru
Copy link

@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.

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