tsi_v5_selfmode
Overview
The tsi_v5_selfmode demo shows how to use TSI_V5 driver in self-cap mode:
In this example , available electrodes on board is used to show how to realize touch key.
Firstly, get the non-touch calibration results as baseline electrode counter;
Then, start the periodical Software-Trigger scan using polling method to detect finger touch;
Wait for the electrodes touched and deal with the event.
Running the demo
When running successfully, LED will be turn on when the electrode on board touched and will be turn off when released. The log output in terminal shall be similar as below:
TSI self mode demo.
TSI key touched.
TSI key released.
TSI key touched.
TSI key released.