From 0c829b2e079780b02124205571c2ea78b74cd4f9 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Thu, 12 Dec 2024 11:47:31 +0800 Subject: [PATCH] Update CSTxxx example --- .../TouchDrv_CSTxxx_GetPoint.ino | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino b/examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino index cb58fc6..82d2426 100644 --- a/examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino +++ b/examples/TouchDrv_CSTxxx_GetPoint/TouchDrv_CSTxxx_GetPoint.ino @@ -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) {