accessory:display:odroid-show:using_commands

To send string and information to ODROID-SHOW, you need to know the ANSI /VT100 escape commands.
Here is a list of supported command.

This guide is tested on Ubuntu 16.04(ARM and x86)

both
$ sudo stty -F /dev/ttyUSBn 500000

Normally the ttyUSBn should be ttyUSB0 !

Terminal codes are needed to give specific commands to your ODROID-SHOW. This can be related to switching colors or positioning the cursor.

NamedecimaloctalhexDescription
ESC270330x1BEscape character
CR130150x0DCarriage return
LF100120x0ALinefeed (newline)
both
$ sudo echo -ne "\e[31mRed show" > /dev/ttyUSBn
ANSIDescription
Esc [ 3 0 mSet foreground to color #0 - black
Esc [ 3 1 mSet foreground to color #1 - red
Esc [ 3 2 mSet foreground to color #2 - green
Esc [ 3 3 mSet foreground to color #3 - yellow
Esc [ 3 4 mSet foreground to color #4 - blue
Esc [ 3 5 mSet foreground to color #5 - magenta
Esc [ 3 6 mSet foreground to color #6 - cyan
Esc [ 3 7 mSet foreground to color #7 - white
Esc [ 3 9 mSet default color as foreground color - black
ANSIDescription
Esc [ 4 0 mSet backround to color #0 - black
Esc [ 4 1 mSet background to color #1 - red
Esc [ 4 2 mSet background to color #2 - green
Esc [ 4 3 mSet background to color #3 - yellow
Esc [ 4 4 mSet background to color #4 - blue
Esc [ 4 5 mSet background to color #5 - magenta
Esc [ 4 6 mSet background to color #6 - cyan
Esc [ 4 7 mSet background to color #7 - white
Esc [ 4 9 mSet default color as background color - black
both
$ sudo echo -ne "\ecClear!" > /dev/ttyUSBn

(Pn = Numeric Parameter)

VT100Description
Linefeed(\n)Cursor down
Esc DCursor Down
Esc ECursor Down to row 1
Esc MCursor Up
Esc cResets LCD
Esc [ Pn AKeyboard UP Arrow
Esc [ Pn BKeyboard Down Arrow
Esc [ Pn CKeyboard Right Arrow
Esc [ Pn DKeyboard Left Arrow
Esc [ Pn ; Pn HCursor Position
Esc [ HCursor to Home
Esc [ 2 JErase entire screen
Esc [ 6 nReports cursor position(serial port)
Extended VT100Description
Esc [ sSave cursor pos
Esc [ uRestore cursor pos
Esc [ sSet text size (width = textsize*6, height = textsize*8)
Esc [ rSet rotation 0 to 3(move to 90° in a clockwise)
Esc [ Pn qPWM LED backlight( 0 ~ 255 )
Esc [ Pn;Pn , Pn;Pn iSet image drowing status
Esc [ Pn;Pn xDraw dot at the position to current color
  • accessory/display/odroid-show/using_commands.txt
  • Last modified: 2017/08/01 17:01
  • by luke.go