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

Library update for Arduino Nano 33 IoT and 33 BLE? #86

Open
Bjerg13 opened this issue Feb 6, 2020 · 5 comments
Open

Library update for Arduino Nano 33 IoT and 33 BLE? #86

Bjerg13 opened this issue Feb 6, 2020 · 5 comments

Comments

@Bjerg13
Copy link

Bjerg13 commented Feb 6, 2020

Hallo,
The new Arduino Nano’s (Every, 33 IoT, 33 BLE and 33 BLE Sense) are using new MCU’s and are not compadeble with the current ITEADLIB_Arduino_Nextion library. Will there be an update anytime soon?

Thanks

@stef-ladefense
Copy link

il faut toujours avoir de l'espoir !
mais il faudrait pour ça que Itead se sortent les doigts du cul... pour réécrire complètement une vrai librairie et non pas reprendre la merde qu'ils ont chier actuellement.

@MCR68
Copy link

MCR68 commented Apr 21, 2022

I just had the same problem with Nano 33 BLE and solved in this way:
Modify NexConfig.h in ...Arduino\libraries\ITEADLIB_Arduino_Nextion directory, row 37 "#define nexSerial Serial //Set "Serial" for Arduino Uno "
to "#define nexSerial Serial1 //Set "Serial" for Arduino Uno, Set "Serial1" for Arduino Nano BLE"
Use Tx1/Rx0 of Nano 33 BLE to communicate with Nextion Display.
in Arduino void setup()
{
....your code here..
Serial.begin(115200); // Start serial comunication at baud=115200 to Serial Monitor
Serial1.begin(115200); // Start serial comunication at baud=115200 to display Nextion

// nexInit(); //DON'T CALL nexInit(); !!! Comment it

page0.attachPush(page0PushCallback);   //Page press event every time the GUI enter on the page 0
page1.attachPush(page1PushCallback);   //Page press event every time the GUI enter on the page 1
page2.attachPush(page2PushCallback);   //Page press event every time the GUI enter on the page 2
page3.attachPush(page3PushCallback);   //Page press event every time the GUI enter on the page 3

....
}

Now the display communicates with Nano 33 BLE. Of course not more with Nano AVR.

@ademmler
Copy link

ademmler commented Sep 14, 2022

Hi there,

I ran into the same issue with Nextion 10'' and Arduino Nano 33 IoT . I followed your advice - thx for that.
When I run my project with the Arduino IDE open it works perfectly.
but when I close the IDE and power the Arduino from an external power supply via USB the display
and the Nano boots/appears but nothing happens.

Seems like the communication is "bridged" within Arduino IDE or using USB ...
Can somebody help here pls?

@muldereric
Copy link

I don't know anything about your setup or ino file, so this is a wild guess. Make sure you connect your display to a free physical serial port (pref not a software emulated serial port) and not the one shared by the arduino for programming and monitoring.

@ademmler
Copy link

Hello,

ofcourse I use a free serial port. Otherwise it wound work if the IDE is open also ;-)
And of course I have followed Nextion advice how to change Nex.config
/**

  • Define nexSerial for communicate with Nextion touch panel.
    */
    //#define nexSerial Serial2
    #define nexSerial Serial1 //Set "Serial" for Arduino Uno, Set "Serial1" for Arduino Nano BLE"

And as I wrote, the hardware is Nano 33 IoT.
A sample sketch you can find here:
ITEADLIB_Arduino_Nextion-0.9.0/examples/CompSlider

However I found a solution - while the reason for this problem is still unknown.
I had to include #include <NexSlider.h> explicitly. Even I have #include <Nextion.h> in my ino.

Seems linke the linker/compiler does something wrong here and it might be an Arduino IDE issue also ...

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

5 participants