e z L C D -‐ 4 0 5 |
2
1 Contents
Quick
S tart
G uide
.............................
5
1.1
Overview
............................
1 9
1.2
...
Page 3
e z L C D -‐ 4 0 5 |
3
1.7.9
C IRCLE_RH_FILL
.........................
6 6
1.7.10
C LS
............................
6 7
1.7.11
E ZNOW_BUZZER_BEEP
......................
6 8
1.7.12
...
Page 4
e z L C D -‐ 4 0 5 |
4
1.7.42
S D_FILE_WRITE
........................
1 16
1.7.43
S D_FIND_FIRST
a nd
S D_FIND_NEXT
..................
1 19
1.7.44
...
a) Download
a ll
e zLCD-‐405
f iles
f rom
ttp://store.earthlcd.com/ezLCD-‐405
a nd
s ave
t o
Desktop
f or
e asy
r eference.
...
Page 6
e z L C D -‐ 4 0 5 |
6
STEP
2
-‐
U PGRADE
F IRMWARE
New
f irmware
w ill
b e
a dded
t o
t he
w ebsite
t o
u pdate
y our
d evice.
T hese
u pdates
h elp
f ix
b ugs
and
...
Page 7
e z L C D -‐ 4 0 5 |
7
d) To
“ Open”,
s elect
t he
l atest
f irmware
( ex.
“ ezLCD405-‐Firmware-‐x-‐xx.dfu”)
w hich
y ou
have
...
Page 8
e z L C D -‐ 4 0 5 |
8
STEP
3
-‐
U SING
T HE
T EST
P LATFORM
An
e asy
w ay
t o
t est
t he
e zLCD-‐405
i s
b y
u sing
t he
4 05_Test_Platform.
W ith
t his,
y ou
c an
q uickly
test
...
Page 9
e z L C D -‐ 4 0 5 |
9
b) Colors
There
i s
a
“ Color
C ommands”
s ection
o n
t he
T est
P latform
w here
y ou
c an
s pecify
t he
colors
...
Page 10
e z L C D -‐ 4 0 5 |
1 0
c) Fonts
If
y ou
w ant
t o
h ave
a
s pecific
f ont
p rinted
t o
t he
s creen,
y ou
m ust
u pload
i t
t o
t he
microSD
...
Page 11
e z L C D -‐ 4 0 5 |
1 1
5. Insert your microSD card from the ezLCD-405 6. Then “Save Font” in the “FONTS” file on your microSD card (make sure the file ...
Page 12
e z L C D -‐ 4 0 5 |
1 2
11. Set
u p
y our
c olors
a nd
p osition
a s
s hown
ere
...
Page 13
e z L C D -‐ 4 0 5 |
1 3
6. You
w ill
n eed
t o
g enerate
a
n ew
c onfig
f ile
a s
s hown
ere
...
Page 14
e z L C D -‐ 4 0 5 |
1 4
e) Startup
S ettings
The
s tartup
s ettings
i s
a utomatically
s et
t o
“ ezLCD
D efault”
b ut
y ou
c an
c hange
t he
s ettings
so
...
Page 15
e z L C D -‐ 4 0 5 |
1 5
f) Generating
t he
C onfig
F ile
A
. ezs
f ile
i s
n eeded
t o
b e
s aved
o n
t he
m icroSD
c ard
f or
S tartup
s ettings
a nd
instantiating
...
Page 16
e z L C D -‐ 4 0 5 |
1 6
·∙ Eject
t he
m icroSD
c ard
a nd
p ut
i t
b ack
i nto
t he
e zLCD-‐405
·∙...
Page 17
e z L C D -‐ 4 0 5 |
1 7
g) FOR
U NEXPECTED
P ROBLEMS,
B UGS
&
E RRORS
1. Not
R ecognizing
t he
D evice
·∙...
Page 18
e z L C D -‐ 4 0 5 |
1 8
·∙ Then
c lick
“ Search
a utomatically
f or
u pdated
d river
s oftware”
...
e z L C D -‐ 4 0 5 |
3 1
1.5
T ouch
S creen
1.5.1
I ntroduction
The
e zLCD-‐405
h as
a
4 -‐wire
r esistive
a nalog
t ouch
s creen.
T his
t ouch
s creen
c onsists
o f
t wo
layers
...
e z L C D -‐ 4 0 5 |
3 3
1.5.3
D ata
P rotocols
Currently,
t he
e zLCD-‐405
c an
b roadcast
t he
t ouch
s creen
d ata
u sing
t he
f ollowing
p rotocols:
1.
...
Page 34
e z L C D -‐ 4 0 5 |
3 4
1.5.3.1
e zButton
The
e zButton
( ez
=
e asy)
p rotocol
i s
t he
e asiest
w ay
t o
u se
t he
t ouch
s creen.
A ll
y ou
h ave
t o
d o
is:
...
Page 35
e z L C D -‐ 4 0 5 |
3 5
1.5.3.1.1
e zButton
E vents
The
e zButton
e vents
a re
c oded
i n
o ne
b yte:
...
Page 36
e z L C D -‐ 4 0 5 |
3 6
4. Touch
S creen:
Not
p ressed
ezLCD-‐405
S ends:
Nothing
5. Touch
S creen:
Not
...
Page 37
e z L C D -‐ 4 0 5 |
3 7
1.5.3.2
c uButton
The
c uButton
( cu
=
c ontinuous
u pdate)
p rotocol
i s
a n
e asy
w ay
t o
u se
t he
t ouch
s creen.
A ll
y ou
have
...
Page 38
e z L C D -‐ 4 0 5 |
3 8
1.5.3.2.1
c uButton
S tates
The
e zButton
e vents
a re
c oded
i n
o ne
b yte:
...
Page 39
e z L C D -‐ 4 0 5 |
3 9
3. Touch
S creen:
Finger
i s
r emoved
f rom
t he
t ouch
s creen
ezLCD-‐405
...
Page 40
e z L C D -‐ 4 0 5 |
4 0
1.5.3.3
C alibratedXY
When
t he
C alibratedXY
p rotocol
i s
s elected,
t he
e zLCD:
·∙
...
Page 41
e z L C D -‐ 4 0 5 |
4 1
1.5.3.3.1
C alibratedXY
P ackets
When
t he
C alibratedXY
p rotocol
i s
s elected,
t he
t ouch
s creen
c oordinates
a re
s ent
i n
m ulti-‐byte
packets.
...
Page 42
e z L C D -‐ 4 0 5 |
4 2
Example:
The
d rawing
b elow
s hows
a n
e xample
o f
t he
d ata
s ent
b y
t he
e zLCD,
w hen
t he
C alibratedXY
protocol
...
e z L C D -‐ 4 0 5 |
4 4
1.6.2
S D
F ile
O perations
The
S D
c ard
i s
t reated
a s
a
f ormatted
d isk.
T he
s upported
f ile
s ystems
a re:
F AT-‐12,
F AT-‐16
a nd
FAT32.
...
Page 45
e z L C D -‐ 4 0 5 |
4 5
SD_FILE_CLOSE_ALL
Closes
a ll
o pened
S D
F lash
f iles
a nd
r e-‐enables
t he
t ouch
s creen.
SD_FILE_GET_SIZE
...
Page 46
e z L C D -‐ 4 0 5 |
4 6
About
t he
S D
D irectory/File
P ath
u sed
i n
t he
S D_FILE_LIST
...
e z L C D -‐ 4 0 5 |
4 7
1.6.3
S D
R aw
O perations
The
S D
c ard
i s
t reated
a s
a n
e xternal
m emory
( 8bit
x
C ard
S ize).
T he
u ser
d ata
i s
s tored
a t
addressed
...
e z L C D -‐ 4 0 5 |
4 8
1.6.4
S D
S ource
C ode
E xamples
SD
S ource
C ode
e xamples
a re
p rovided
t o
i llustrate
h ow
t o
u se
S D
a ccess
c ommands.
T he
a re
provided
...
Page 49
e z L C D -‐ 4 0 5 |
4 9
Projects
Projects
Functionality
Sources
Headers
Displays
a
b itmap
mytypes.h
icon.c
from
...
e z L C D -‐ 4 0 5 |
5 0
1.7
e zLCD
C ommands
i. General
CLS
SET_COLORH
ii. Drawing
P osition
RESTORE_POSITION
...
Page 51
e z L C D -‐ 4 0 5 |
5 1
ix. Touch
S creen
BUTTON_DEF
BUTTON_STATE
BUTTONS_ALL_UP
BUTTONS_DELETE_ALL
TOUCH_PROTOCOL
x. SD
F lash
C ard
SD_FILE_CLOSE
...
Page 52
e z L C D -‐ 4 0 5 |
5 2
SET_COLOR
SET_XY
...
e z L C D -‐ 4 0 5 |
5 3
1.7.1
A RCH
Description:
Draws
a n
a rc
i n
C urrent
C olor,
w ith
t he
c enter
a t
C urrent
P osition,
s tarting
o n
Begin
...
Page 54
e z L C D -‐ 4 0 5 |
5 4
The
a ngle
i s
o riented
c lockwise
w ith
t he
z ero
p ositioned
a t
t he
t op
o f
t he
s creen,
a s
i t
i s
s hown
on
...
Page 55
e z L C D -‐ 4 0 5 |
5 5
1.7.2
B OXH
Description:
Draws
a
r ectangle.
Code:
A2hex,
...
Page 56
e z L C D -‐ 4 0 5 |
5 6
RED_MSB
11111000
bin
SET_XHY
85
hex
0
...
e z L C D -‐ 4 0 5 |
6 5
1.7.8
C IRCLE_RH
Description:
Draws
a
c ircle
i n
C urrent
C olor
c entered
a t
C urrent
P osition.
Code:
...
Page 66
e z L C D -‐ 4 0 5 |
6 6
1.7.9
C IRCLE_RH_FILL
Description:
Draws
a
c ircle
i n
C urrent
C olor
c entered
a t
C urrent
P osition,
f illed
w ith
C urrent
Color.
...
Page 67
e z L C D -‐ 4 0 5 |
6 7
1.7.10
C LS
Description:
Clears
t he
s creen
b y
f illing
i t
w ith
t he
C urrent
C olor.
Code:
...
e z L C D -‐ 4 0 5 |
6 8
1.7.11
E ZNOW_BUZZER_BEEP
Description:
Makes
t he
b uzzer
o n
t he
e zNow
b oard
b eep
f or
t he
s pecified
t ime
Code:
...
Page 69
e z L C D -‐ 4 0 5 |
6 9
1.7.12
E ZNOW_BUZZER_OFF
Description:
Turns
O ff
t he
b uzzer
o n
t he
e zNow
b oard
Code:
...
Page 70
e z L C D -‐ 4 0 5 |
7 0
1.7.13
E ZNOW_BUZZER_ON
Description:
Turns
O n
t he
b uzzer
o n
t he
e zNow
b oard
Code:
...
Page 71
e z L C D -‐ 4 0 5 |
7 1
1.7.14
H _LINEH
Description:
Quickly
d raws
a
h orizontal
l ine
f rom
t he
C urrent
P osition
t o
t he
c olumn
s pecified
by
...
e z L C D -‐ 4 0 5 |
7 5
1.7.18
L INE_TO_XHY
Description:
Draws
a
l ine
i n
C urrent
C olor,
f rom
C urrent
P osition
t o
t he
s pecified
p osition.
Code:
...
Page 76
e z L C D -‐ 4 0 5 |
7 6
0
0
dec
(x0
M SB)
0
...
e z L C D -‐ 4 0 5 |
7 7
1.7.19
P IEH
Description:
Draws
a
p ie
i n
C urrent
C olor
w ith
t he
c enter
a t
C urrent
P osition,
s tarting
o n
Begin
...
Page 78
e z L C D -‐ 4 0 5 |
7 8
Example: The
f ollowing
s equence
w ill
d raw
a
g reen
p ie
f rom
4 5
t o
2 25
d egrees
w ith
t he
c enter
positioned
...
e z L C D -‐ 4 0 5 |
8 0
1.7.21
P LOT
Description:
Plots
a
p oint
a t
C urrent
P osition
i n
C urrent
C olor.
Code:
...
Page 81
e z L C D -‐ 4 0 5 |
8 1
1.7.22
P LOT_XHY
Description:
Plots
a
p oint
i n
C urrent
C olor
a t
t he
s pecified
p osition.
Code:
...
Page 82
e z L C D -‐ 4 0 5 |
8 2
1.7.23
P RINT_CHAR
Description:
Prints
a
c haracter
a t
C urrent
P osition.
Code:
...
Page 83
e z L C D -‐ 4 0 5 |
8 3
1.7.24
P RINT_CHAR_BG
Description:
Prints
a
c haracter
a t
C urrent
P osition
o n
t he
b ackground
s pecified
b y
t he
SET_BG_COLORH
...
e z L C D -‐ 4 0 5 |
8 5
1.7.26
P RINT_STRING_BG
Description:
Prints
n ull-‐terminated
S tring
s tarting
a t
C urrent
P osition
o n
t he
b ackground
specified
...
Page 86
e z L C D -‐ 4 0 5 |
8 6
PRINT_STRING_BG
3D
hex
'L'
4C
hex
'C'
...
Page 87
e z L C D -‐ 4 0 5 |
8 7
1.7.27
P UT_BITMAPH
Description:
Displays
a
B itmap
o n
t he
s creen
s tarting
a t
C urrent
P osition,
t hen
U P
a nd
R IGHT?
Code:
...
Page 88
e z L C D -‐ 4 0 5 |
8 8
Notes:
1.
T he
t otal
n umber
o f
b ytes
i s:
2
x
w idth
x
h eight
+
7
2.
...
Page 89
e z L C D -‐ 4 0 5 |
8 9
1.7.28
P UT_SF_ICON
Description: Displays an icon with its upper-left corner positioned at the Current Position. The icon is read from the ezLCD Serial Flash.
Page 90
e z L C D -‐ 4 0 5 |
9 0
0
0
dec
(y
M SB)
43
43
...
Page 91
e z L C D -‐ 4 0 5 |
9 1
RESTORE_POSITION
3 6
hex
12
12
dec
...
e z L C D -‐ 4 0 5 |
9 2
1.7.30
S AVE_POSITION
Description: Stores the Current Position to the Position ID. The saved position may be later restored by the RESTORE_POSITION command. ...
e z L C D -‐ 4 0 5 |
9 3
1.7.31
S D_FILE_CLOSE
Description:
Closes
S D
F lash
f ile.
R e-‐enables
t he
t ouch
s creen
i f
n o
o ther
S D
f iles
a re
o pened.
Supported
...
Page 94
e z L C D -‐ 4 0 5 |
9 4
1.7.32
S D_FILE_CLOSE_ALL
Description:
Closes
a ll
o pened
S D
F lash
f iles
a nd
r e-‐enables
t he
t ouch
s creen.
Supported
...
e z L C D -‐ 4 0 5 |
9 5
1.7.33
S D_FILE_CREATE
Description:
Creates
a
n ew
S D
F lash
f ile
a nd
o pens
i t
f or
w riting.
F ile
P osition
I ndex
i s
s et
t o
0 .
Supported
...
Page 96
e z L C D -‐ 4 0 5 |
9 6
ezLCD
R esponse
After
r eceiving
t he
S D_FILE_CREATE
c ommand,
t he
e zLCD
r esponds
w ith
t he
f ollowing
sequence:
...
Page 97
e z L C D -‐ 4 0 5 |
9 7
If
t he
f ile
h as
s uccessfully
b een
c reated,
t he
e zLCD
r esponds
w ith
t he
f ollowing
s equence:
...
e z L C D -‐ 4 0 5 |
9 8
1.7.34
S D_FILE_DELETE
Description:
Deletes
t he
S D
f ile
Supported
f ile
s ystems:
...
Page 99
e z L C D -‐ 4 0 5 |
9 9
7
6
5
4
3
2
1
0
0
0
1
1
...
Page 100
e z L C D -‐ 4 0 5 |
1 00
1.7.35
S D_FILE_GET_SIZE
Description:
Gets
t he
s ize
( in
b ytes)
o f
t he
o pened
S D
F lash
f ile.
Supported
...
e z L C D -‐ 4 0 5 |
1 03
1.7.36
S D_FILE_LIST
Description:
Gets
t he
l ist
o f
f iles
a nd
s ub-‐directories
w hich
r eside
i n
t he
s pecified
S D
Directory.
...
Page 104
e z L C D -‐ 4 0 5 |
1 04
·∙
E ntries
( files
o r
s ub-‐directories)
a re
s eparated
b y
t he
L ine
F eed
c haracter
( 0Ahex
o r
1 0dec)
·∙
...
Page 105
e z L C D -‐ 4 0 5 |
1 05
1.7.37
S D_FILE_OPEN
Description:
Opens
a n
e xisting
S D
F lash
f ile
f or
r eading
o r
w riting.
F ile
P osition
I ndex
i s
s et
t o
0.
...
Page 106
e z L C D -‐ 4 0 5 |
1 06
ezLCD
R esponse
After
r eceiving
t he
S D_FILE_OPEN
c ommand,
t he
e zLCD
r esponds
w ith
t he
f ollowing
s equence:
...
Page 107
e z L C D -‐ 4 0 5 |
1 07
If
t he
f ile
h as
s uccessfully
b een
o pened,
t he
e zLCD
r esponds
w ith
t he
f ollowing
s equence:
...
Page 110
e z L C D -‐ 4 0 5 |
1 10
1.7.39
S D_FILE_REWIND
Description:
Moves
t he
F ile
P osition
I ndex
t o
t he
b eginning
o f
t he
o pened
S D
F lash
f ile.
Supported
...
e z L C D -‐ 4 0 5 |
1 11
In
c ase
o f
a n
rror:
7
6
5
4
3
2
...
Page 112
e z L C D -‐ 4 0 5 |
1 12
1.7.40
S D_FILE_SEEK
Description:
Moves
t he
F ile
P osition
I ndex
o f
t he
o pened
S D
F lash
f ile
b y
t he
s pecified
number
...
e z L C D -‐ 4 0 5 |
1 13
About
t he
F ile
I D:
File
I D
i s
r eturned
i n
t he
r esponse
t o
t he
S D_FILE_OPEN
...
Page 114
e z L C D -‐ 4 0 5 |
1 14
1.7.41
S D_FILE_TELL
Description:
Gets
t he
F ile
P osition
I ndex
o f
t he
o pened
S D
F lash
f ile.
Supported
...
Page 115
e z L C D -‐ 4 0 5 |
1 15
In
c ase
o f
t he
uccess:
7
6
5
4
3
2
...
e z L C D -‐ 4 0 5 |
1 16
1.7.42
S D_FILE_WRITE
Description:
Writes
t he
s pecified
n umber
o f
b ytes
t o
t he
o pened
S D
F lash
f ile,
s tarting
f rom
File
...
Page 117
e z L C D -‐ 4 0 5 |
1 17
About
t he
F ile
I D:
File
I D
i s
r eturned
i n
t he
r esponse
t o
t he
S D_FILE_CREATE
...
Page 119
e z L C D -‐ 4 0 5 |
1 19
1.7.43
S D_FIND_FIRST
a nd
S D_FIND_NEXT
Description:
Obtain
t he
l ist
o f
S D
f iles
a nd
s ub-‐directories
( one
b y
o ne),
w hich
m atch
t he
specified
...
Page 120
e z L C D -‐ 4 0 5 |
1 20
·∙
D irectories
s hould
b e
s eparated
b y:
/
( not
b y:
\
l ike
i n
W indows
a nd
D OS).
·∙
...
Page 121
e z L C D -‐ 4 0 5 |
1 21
Example: :
The
f ollowing
f low
c hart
s hows
a n
e xample
o f
r eading
t he
f ile
l ist
f rom
t he
d irectory
My/Pictures
...
e z L C D -‐ 4 0 5 |
1 22
1.7.44
S D_FOLDER_CREATE
Description:
Creates
a
n ew
f older
( directory)
o n
t he
S D.
T his
c ommand
i s
s imilar
t o
t he
D OS
"mkdir"
...
Page 123
e z L C D -‐ 4 0 5 |
1 23
In
c ase
o f
a n
rror:
7
6
5
4
3
2
...
e z L C D -‐ 4 0 5 |
1 24
1.7.45
S D_FOLDER_DELETE
Description:
Deletes
a n
e mpty
f older
( directory)
o n
t he
S D.
T his
c ommand
i s
s imilar
t o
t he
DOS
...
Page 125
e z L C D -‐ 4 0 5 |
1 25
In
c ase
o f
a n
rror:
7
6
5
4
3
2
...
e z L C D -‐ 4 0 5 |
1 29
1.7.48
S D_PUT_ICON
Description:
Displays
a n
i con
w ith
i ts
u pper-‐left
c orner
p ositioned
a t
t he
C urrent
P osition.
The
...
Page 130
e z L C D -‐ 4 0 5 |
1 30
1.7.49
S D_RAW_READ
Description:
Reads
t he
d ata
f rom
S D
s tarting
f rom
t he
s pecified
S D
a ddress.
S D
i s
t reated
a s
a
memory
...
Page 131
e z L C D -‐ 4 0 5 |
1 31
In
c ase
o f
t he
uccess:
7
6
5
4
3
2
...
Page 132
e z L C D -‐ 4 0 5 |
1 32
1.7.50
S D_RAW_WRITE
Description:
Writes
t he
d ata
o n
S D
s tarting
f rom
t he
s pecified
S D
a ddress.
S D
i s
t reated
a s
a
memory
...
e z L C D -‐ 4 0 5 |
1 33
ezLCD
R esponse
After
r eceiving
t he
S D_RAW_WRITE
c ommand,
t he
e zLCD
r esponds
w ith
e ither
o f
t he
f ollowing
sequences:
...
e z L C D -‐ 4 0 5 |
1 34
1.7.51
S D_SCREEN_CAPTURE
Description:
Saves
a n
i mage
o f
t he
d isplayed
s creen
t o
t he
S D
a s
. bmp
f ile.
Supported
...
Page 135
e z L C D -‐ 4 0 5 |
1 35
Example: The
f ollowing
s equence
w ill
s ave
t he
i mage
o f
t he
d isplayed
s creen
t o
t he
S D
f ile.
...
e z L C D -‐ 4 0 5 |
1 36
1.7.52
S D_SIZE
Description:
Gets
t he
p hysical
s ize
( in
b ytes)
o f
t he
S D
C ard.
Code:
...
Page 137
e z L C D -‐ 4 0 5 |
1 37
Example: le:
The
f ollowing
f low
c hart
s hows
a n
e xample
o f
g etting
t he
s ize
o f
t he
S D
C ard.
...
Page 138
e z L C D -‐ 4 0 5 |
1 38
1.7.53
S D_SPACE_INFO
Description:
Gets
t he
i nformation
a bout
t he
s pace
u sage
( in
b ytes)
o f
t he
f ormatted
S D
C ard.
Supported
...
e z L C D -‐ 4 0 5 |
1 43
1.7.57
S ET_XH
Description:
Sets
o nly
t he
X -‐coordinate
o f
t he
C urrent
P osition.
Y
c oordinate
r emains
unchanged.
...
Page 144
e z L C D -‐ 4 0 5 |
1 44
1.7.58
S ET_XHY
Description:
Sets
t he
C urrent
P osition.
Code:
85hex,
...
Page 145
e z L C D -‐ 4 0 5 |
1 45
0
0
dec
(x
M SB)
160
...
e z L C D -‐ 4 0 5 |
1 46
1.7.59
S ET_Y
Description:
Sets
o nly
t he
Y -‐coordinate
o f
t he
C urrent
P osition.
X
c oordinate
r emains
unchanged
...
e z L C D -‐ 4 0 5 |
1 47
1.7.60
T EXT_EAST
Description:
Sets
t he
o rientation
o f
t he
t ext,
a s
s hown
o n
t he
p icture
b elow.
Code:
...
Page 148
e z L C D -‐ 4 0 5 |
1 48
Example: Example:
The
f ollowing
s equence
w ill
p rint
a
t ext
p attern
s imilar
t o
t he
o ne
p ictured
a bove.
...
Page 149
e z L C D -‐ 4 0 5 |
1 49
1.7.61
T EXT_NORTH
Description:
Sets
t he
o rientation
o f
t he
t ext,
a s
s hown
o n
t he
p icture
b elow.
Code:
...
Page 150
e z L C D -‐ 4 0 5 |
1 50
E xample:
The
f ollowing
s equence
w ill
p rint
a
t ext
p attern
s imilar
t o
t he
o ne
p ictured
a bove.
...
Page 151
e z L C D -‐ 4 0 5 |
1 51
1.7.62
T EXT_SOUTH
Description:
Sets
t he
o rientation
o f
t he
t ext,
a s
s hown
o n
t he
p icture
b elow.
Code:
...
Page 152
e z L C D -‐ 4 0 5 |
1 52
Example: Example:
The
f ollowing
s equence
w ill
p rint
a
t ext
p attern
s imilar
t o
t he
o ne
p ictured
a bove.
...
Page 153
e z L C D -‐ 4 0 5 |
1 53
1.7.63
T EXT_WEST
Description:
Sets
t he
o rientation
o f
t he
t ext,
a s
s hown
o n
t he
p icture
b elow.
Code:
...
Page 154
e z L C D -‐ 4 0 5 |
1 54
Example: The
f ollowing
s equence
w ill
p rint
a
t ext
p attern
s imilar
t o
t he
o ne
p ictured
a bove.
...
e z L C D -‐ 4 0 5 |
1 57
1.7.65
V _LINE
Description:
Quickly
d raws
a
v ertical
l ine
f rom
C urrent
P osition,
t o
t he
r ow
s pecified
b y
t he
parameter.
...
Page 158
e z L C D -‐ 4 0 5 |
1 58
10
10
dec
(y
L SB)
V_LINE
...
e z L C D -‐ 4 0 5 |
1 59
1.7.66
L egacy
C ommands
The
e zLCD-‐405
c an
i nterpret
t he
c ommands
u sed
b y
t he
s maller
e zLCD
d isplays.
T hose
d isplays
(ezLCD-‐001
...
Page 160
e z L C D -‐ 4 0 5 |
1 60
1.7.66.1
A RC
Description:
Draws
a n
A rc
i n
C urrent
C olor,
w ith
t he
c enter
a t
C urrent
P osition,
s tarting
o n
Begin
...
Page 161
e z L C D -‐ 4 0 5 |
1 61
Example:
Example: The
f ollowing
s equence
w ill
d raw
a
g reen
a rc
f rom
4 5
t o
2 25
d egrees
w ith
t he
c enter
positioned
...
Page 162
e z L C D -‐ 4 0 5 |
1 62
1.7.66.2
B OX
Description:
Draws
a
r ectangle.
Code:
42hex,
...
Page 163
e z L C D -‐ 4 0 5 |
1 63
1.7.66.3
B OX_FILL
Description:
Draws
a
r ectangle
f illed
w ith
C urrent
C olor
Code:
...
Page 164
e z L C D -‐ 4 0 5 |
1 64
1.7.66.4
C IRCLE_R
Description:
Draws
a
c ircle
i n
C urrent
C olor
a t
C urrent
P osition
Code:
...
Page 165
e z L C D -‐ 4 0 5 |
1 65
1.7.66.5
C IRCLE_R_FILL
Description:
Draws
a
c ircle
i n
C urrent
C olor
a t
C urrent
P osition,
f illed
w ith
C urrent
C olor
Code:
...
Page 166
e z L C D -‐ 4 0 5 |
1 66
1.7.66.6
L INE_TO_XY
Description:
Draws
a
l ine
i n
C urrent
C olor,
f rom
t he
C urrent
P osition
t o
t he
s pecified
p osition
Code:
...
Page 167
e z L C D -‐ 4 0 5 |
1 67
1.7.66.7
P LOT_XY
Description:
Plots
a
p oint
i n
C urrent
C olor,
a t
s pecified
p osition.
Code:
...
Page 168
e z L C D -‐ 4 0 5 |
1 68
1.7.66.8
P UT_BITMAP
Description:
Puts
B itmap
o n
t he
s creen
s tarting
a t
C urrent
P osition,
t hen
U P
a nd
R IGHT
Code:
...
Page 169
e z L C D -‐ 4 0 5 |
1 69
Note:
T he
t otal
n umber
o f
b ytes
i s:
w idth
x
h eight
+
3
...
Page 170
e z L C D -‐ 4 0 5 |
1 70
1.7.66.9
S ET_BG_COLOR
Description:
Sets
t he
B ackground
C olor
f or
t he
f ollowing
i nstructions:
PRINT_CHAR_BG
...
Page 171
e z L C D -‐ 4 0 5 |
1 71
NULL
0
hex
1.7.66.10
S ET_COLOR
Description:
Sets
...
Page 172
e z L C D -‐ 4 0 5 |
1 72
1.7.66.11
S ET_X
Description:
Sets
o nly
t he
X -‐coordinate
o f
t he
C urrent
P osition.
Y
c oordinate
r emains
unchanged
...
Page 173
e z L C D -‐ 4 0 5 |
1 73
1.7.66.12
S ET_XY
Description:
Sets
t he
C urrent
P osition
Code:
25hex,
...