I'm working on Lopy4 interfacing with Nextion serial display (http://nextion.tech/instruction-set/#s6).
To send the data to the monitor for displaying, I must follow their rules (see below Arduino code for instance).
Code: Select all
//Serial print ASCII text "voltage1.val=" to the display serial port
Serial.print("voltage1.val=");
//Then Print the value we want to be displayed to the display serial port
Serial.print(Value);
//Always terminated with 3 full bytes after...
Serial.write(0xff);
Serial.write(0xff);
Serial.write(0xff);
I had tried to migrate the Arduino code to Lopy4, but never make it works. After investigating, my understanding is that
Code: Select all
uart.write()
Code: Select all
Serial.print()
So my question is can UART port write human-readable ASCII text? Please give some instructions. Thank you!