HT1635A/B Wearable Sports Bracelet LED Display Application
17 / 19
AN0393E
Touch Key Processing Subroutine Flowchart
Start
First long-press?
Switch to normal display mode. Under this
mode, short-press key to switch between
sub-modes.
Second
long-press?
Switch to fuel consumption display mode.
Under this mode, short-press key to switch
between sub-modes.
Third long-press?
Switch to hour high digit adjustment mode,
short-press key to adjust this digit value.
Fourth
long-press?
Switch to hour low digit adjustment mode,
short-press key to adjust this digit value.
Fifth long-press?
Switch to minute high digit adjustment
mode, short-press key to adjust this digit
value.
Sixth long-press?
Switch to minute low digit adjustment
mode, short-press key to adjust this digit
value.
Seventh
long-press?
Eighth
long-press?
Switch to welcome mode. Short-pressing
key is not valid. Long-press key to clear the
counter to zero.
Return
Switch to normal display mode. Under this
mode, short-press key to switch between
sub-modes.
N
Y
N
N
N
Y
Y
Y
N
N
N
N
Y
Y
Y
Y
Figure 17 Touch Key Processing Subroutine Flowchart
The touch key processing subroutine is used for RGB LED Matrix display mode screen
switching operations. In the time adjustment mode, a short key press is used to adjust the
digit value. A long key press is used to confirm the current digit value. In the other major
modes, a long key press is used to switch to other major modes and a short key press is
used to switch to other sub-modes of the current major mode.