Skip to content

Commit

Permalink
Update CSTxxx example
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Dec 12, 2024
1 parent 4e7debe commit 0c829b2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@ void setup()

touch.setPins(SENSOR_RST, SENSOR_IRQ);

/*
* Support type.
* TouchDrv_UNKOWN : Judging by identification ID
* TouchDrv_CST8XX : CST816X,CST716,CST820
* TouchDrv_CST226 : CST226X
* TouchDrv_CST92XX : CST9217,CST9220
*/
// Can choose fixed touch model or automatic identification by ID
// touch.setTouchDrvModel(TouchDrv_CST226);


// Support CST81X CST226 CST9217 CST9220 ....
bool result = touch.begin(Wire, address, SENSOR_SDA, SENSOR_SCL);
if (result == false) {
Expand Down

0 comments on commit 0c829b2

Please sign in to comment.