Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - formatted string over uart

(you are viewing a thread; or go back to list of threads)

formatted string over uart (by ibrahimattaka)
would you plz some one describe formatted string over uart
xFE\x58\xFE\x42\x00
Fri Oct 27 2017, 14:35:53
(no subject) (by MGP)
These are instructions to move the cursor.

Sending an \xFE (254 in decimal) as an instruction to the LCD to say that an instruction follows, like \x58.
The latter may mean a CLSCR, depending on the serial LCD you use.

For example:

\xFE = Attention (an instruction follows)
\x48\x00 = go to line 0 (usually line 1)

The instructions can be found in the manual of your serial (uart) LCD, usually written in decimal that you need to convert to hex.
Different types of LCDs have different instructions.
Sat Oct 28 2017, 03:14:36
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):