e z L C D -‐ 4 0 5
|
59
Rev.
© 2016 Earth Computers Tech. Inc.
1.7.4 BUTTON_DEF
Description:
Defines and draws a touch button
Code:
B0
hex,
176
dec
7
6
5
4
3
2
1
0
Byte 0: Command
Byte 1: Button No (0 to 63)
Byte 2: Initial State (1: Up, 2: Down, 3: Disabled, 4: Non-‐Visible)
Byte 3: Icon No in Ser. Flash for button Up (255 = none)
Byte 4: Icon No in Ser. Flash for button Down (255 = none)
Byte 5: Icon No in Ser. Flash for button Disabled (255 = none)
x15
x14
x13
x12
x11
x10
x9
x8
Byte 6: Button upper-‐left corner x-‐coordinate MSB
x7
x6
x5
x4
x3
x2
x1
x0
Byte 7: Button upper-‐left corner x-‐coordinate LSB
y15
y14
y13
y12
y11
y10
y9
y8
Byte 8: Button upper-‐left corner y-‐coordinate MSB
y7
y6
y5
y4
y3
y2
y1
y0
Byte 9: Button upper-‐left corner x-‐coordinate LSB
Byte 10: Touch Zone width
Byte 11: Touch Zone height
About the Touch Zone:
Touch Zone is the active touch response area of the button. It is specified by
With
(Byte 9) and
Height
(Byte 10).
·∙ If the Button Up Icon is
defined
(Byte 3 is not 255), the Touch Zone is centered on it.
·∙ If the Button Up Icon is
none
(Byte 3 = 255), the position of the upper-‐left corner of the Touch
Zone is specified by
X
(Bytes: 6 and 7) and
Y
(Byte 8).
ARCH
button_no
state
button_up_icon
button_down_icon
button_disabled_icon
touch_zone_height
touch_zone_width
Summary of Contents for ezLCD-405
Page 1: ......
Page 22: ...e z L C D 4 0 5 22 Rev 2016 Earth Computers Tech Inc Figure 2 ezLCD 405 Schematic...
Page 32: ...e z L C D 4 0 5 32 Rev 2016 Earth Computers Tech Inc...
Page 52: ...e z L C D 4 0 5 52 Rev 2016 Earth Computers Tech Inc SET_COLOR SET_XY...
Page 102: ...e z L C D 4 0 5 102 Rev 2016 Earth Computers Tech Inc...
Page 109: ...e z L C D 4 0 5 109 Rev 2016 Earth Computers Tech Inc...
Page 118: ...e z L C D 4 0 5 118 Rev 2016 Earth Computers Tech Inc...