e z L C D -‐ 4 0 5
|
35
Rev.
© 2016 Earth Computers Tech. Inc.
1.5.3.1.1 ezButton Events
The ezButton events are coded in one byte:
Where:
Button_Number:
The number (ID) of the button, which has caused the event. The button
number is specified by the
BUTTON_DEF
command.
Button Down Event: The button indicated by Button_Number has just been pressed.
Button Up Event:
The button indicated by Button_Number has just been released.
Sending of the ezButton events by the ezLCD
·∙ The ezLCD sends the ezButton event only once per button state change. If you need to have
the button state continuously updated, please use the
cuButton
protocol instead.
·∙ The button cannot be pressed just by sliding the finger onto the button touch zone. The ezLCD
sends the Button Down Event only if the button is directly pressed.
·∙ When the button is already pressed, it may only be released by removing the finger from the
touch screen. Sliding the finger out of the button area will not release the button.
Example:
Let's assume that the ezButton protocol is selected by the
TOUCH_PROTOCOL
command and
the button no 4 is defined by the
BUTTON_DEF
command.
1.
Touch Screen:
Not pressed
ezLCD-‐405 Sends:
Nothing
2.
Touch Screen:
Not pressed
ezLCD-‐405 Sends:
44hex only 1 time, in the moment when the button 4 become
pressed.
3.
Touch Screen:
Not pressed
ezLCD-‐405 Sends:
84hex only 1 time, in the moment when the finger is removed
from the touch screen
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...