
3. Build and Run Project (Shield Board)
A31T216RLN Shield Board Quick Guide
28
3.6.2
main.c
1.
Set_LED_IO (void):
━
It sets the pin function for LED control.
2.
Set_TS_IO (void):
━
It sets the pin function for Touch operation.
3.
Init_Library (void):
━
It initializes library variables.
━
It must be called before using the library API.
4.
Set_Library:
A.
TS_Set_Mode (unsigned char mode)
▪
TS_Set_Mode (NORMAL_MODE)
✓
In this mode, the parasitic capacitance value for each channel is not adjusted.
✓
Sensitivity for each channel is different.
✓
Since the sensitivity is different for each channel, the threshold should be applied
for each channel.
Figure 24. Sensitivity for Each Channel in Normal Mode