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

Cannot use software serial #3

Closed
wesselah opened this issue May 12, 2020 · 4 comments
Closed

Cannot use software serial #3

wesselah opened this issue May 12, 2020 · 4 comments

Comments

@wesselah
Copy link

wesselah commented May 12, 2020

When compiling on a arduino micro i do get this error

no matching function for call to 'EasyNex::EasyNex(SoftwareSerial&)'

I am wondering do i have to change this line in easyNextionLibrary.h
EasyNex(HardwareSerial& serial); ???
any advice would be appriciated

@wesselah wesselah changed the title Cannot use software serail Cannot use software serial May 12, 2020
@Seithan
Copy link
Owner

Seithan commented May 12, 2020

Hello,
I did not want to put Software Serial feature in the library, in order to keep it as simple as possible.
And I believe, because the display is the main device, it has to be to the Hardware Serial ports.
If you need an extra Serial for another device, you can set a Software Serial for the other device. Not for Nextion.
It is not that simple to change with one line. See if you can keep Nextion at Hardware Serial and the other device you need at the Software Serial.
If you still need to use Nextion at the Software Serial, give me some time to send you a modification.

@Seithan
Copy link
Owner

Seithan commented May 12, 2020

Hello,
As I finished the modifications I promised, I will attach the new EasyNextionLibrary.cpp and EasyNextionLibrary.h files that you must replace, in order to have Software Serial. Pay attention. It is only for Software Serial. Not Hardware.
I also have the Four Step Example modified for Software Serial.
FourStepExampleSoftwareSerial.zip

Have a nice evening! If you do not need something else, you can close this issue.

@wesselah
Copy link
Author

Thanks that was fast
I wil test and see if software serial works.
Could not use hardware serial because i am using a arduino with a 32u4 and i am using the hardware serial as keyboard to the pc so i need that part.
I will test and let you know

@wesselah
Copy link
Author

Works like a charm thx

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

2 participants