We're no longer updating This wiki!!

How to use commanad line on linux

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

Setting up serial port

# stty -F /dev/ttyUSBn 500000

Normally the ttyUSBn should be ttyUSB0 !

ANSI Escape Commands

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)

Foreground coloring

# 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

Background coloring

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

VT100 Escape Commands

# 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 VT100 Escape Commands

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
en/show_using.txt · Last modified: 2015/04/21 16:37 by john1117
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0