|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
@license MIT License More...
Go to the source code of this file.
Macros | |
| #define | TOUCH_SDA 13 |
| #define | TOUCH_SCL 14 |
| #define | TOUCH_IRQ 12 |
| #define | TOUCH_RST 38 |
Functions | |
| void | setup () |
| void | loop () |
Variables | |
| TouchDrvCST3530 | touch |
| volatile bool | isPressed = false |
@license MIT License
Copyright (c) 2026 lewis he
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Definition in file cst3530_get_point.ino.
| #define TOUCH_IRQ 12 |
Definition at line 42 of file cst3530_get_point.ino.
| #define TOUCH_RST 38 |
Definition at line 46 of file cst3530_get_point.ino.
| #define TOUCH_SCL 14 |
Definition at line 38 of file cst3530_get_point.ino.
| #define TOUCH_SDA 13 |
Definition at line 34 of file cst3530_get_point.ino.
| void loop | ( | ) |
Definition at line 137 of file cst3530_get_point.ino.
References TouchPoints::getPoint(), TouchPoints::getPointCount(), TouchDrvCST3530::getTouchPoints(), TouchPoints::hasPoints(), i, isPressed, touch, TouchPoint::x, and TouchPoint::y.
| void setup | ( | ) |
Definition at line 52 of file cst3530_get_point.ino.
References TouchDrvInterface::begin(), TouchDrvInterface::getChipID(), TouchDrvCST3530::getModelName(), TouchDrvInterface::getResolutionX(), TouchDrvInterface::getResolutionY(), TouchDrvInterface::getSupportTouchPoint(), isPressed, TouchDrvInterface::setPins(), touch, TOUCH_IRQ, TOUCH_RST, TOUCH_SCL, and TOUCH_SDA.
| volatile bool isPressed = false |
Definition at line 50 of file cst3530_get_point.ino.
| TouchDrvCST3530 touch |
Definition at line 49 of file cst3530_get_point.ino.