A31G213CLN Shield Board Quick Start Guide
3. Building and running project (Shield Board)
25
12.
unsigned long ts_Get_Key(void)
A.
This function returns the current touch key value (32bit).
B.
Bits are assigned sequentially from the lowest channel number among the activated keys.
C.
If no channel is recognized, 0 is returned.
D.
If two or more keys are recognized, the key value is OR calculated.
▪
ex1. If the CS4 key is pressed, the key value is 0x0000 0010.
▪
ex2. If the CS4 key and CS19 keys are pressed, the key value is 0x0000 1010.
Figure 27. Touch Key Value Assignment