View: 1816|Reply: 2

Can’t write data from Orange Pi to Nextion

[Copy link]

1

threads

1

posts

11

credits

Novice

Rank: 1

credits
11
Published in 2022-7-13 19:29:59 from mobile | Show all floors |Read mode
I try to communicate nextion display with Orange pi lite, I can receive data from the display, but can’t send it using WiringSerial library or serial library for python.
if I use common file write() in C program, and try to catch an error by errno.h, it gives me:
value of errno 14
error printed by errno: bad address.
Code for python looks like:

import time
import serial

ser= serial.Serial(‘/dev/ttyS3’,9600)
EndCom = b’xffxffxff’
while True:
    temp=“page 0”
    time.sleep(0.5)
    temp=temp.encode(‘ascii’)
    ser.write( temp + EndCom)

0

threads

17

posts

410

credits

Forbidden to speak

credits
410
Published in 2022-7-27 15:06:46 | Show all floors
Tips: Disabled or deleted by author , the content is blocked

0

threads

2

posts

10

credits

Novice

Rank: 1

credits
10
Published in 2022-7-29 11:42:38 | Show all floors
We hope you enjoy playing our free 2048 game, and best of luck on your way to producing a tile with a value of...2048!
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list