Hello!
I have some problems with Teensy 4.1. I using Serial1 to communicate with Nextion display, and Serial for debug.
My code is
My problem is, when Touch.print executed i see what is being sent in Serial monitor, despite the fact that i dont send anything to Serial.
Something like this
The display also receives these commands, it's just not clear how they get into Serial. With Teensy 3.5 it work fine
I have some problems with Teensy 4.1. I using Serial1 to communicate with Nextion display, and Serial for debug.
My code is
C++:
HardwareSerial& Touch = Serial1;
FLASHMEM void StartDebug() {
#ifdef MASTERDEBUG
Serial.begin(256000);
SerialMode = COMMANDMODE;
#endif
}
FLASHMEM void InitTouch() {
Touch.begin(9600);
SendToTouchPercent(0);
}
FLASHMEM void comandEnd() {
for (int i = 0; i < 3; i++) {
Touch.write(0xff);
}
Touch.flush();
}
FLASHMEM void SendToTouchPercent(byte Percent) {
Touch.print("page0.inft.txt=\"" + String(Percent) + "%\"");
comandEnd();
}
My problem is, when Touch.print executed i see what is being sent in Serial monitor, despite the fact that i dont send anything to Serial.
Something like this
Code:
11:00:44.792 -> page0.h1.pic=1���page0.h2.pic=1���page0.m1.pic=0���page0.m2.pic
The display also receives these commands, it's just not clear how they get into Serial. With Teensy 3.5 it work fine