|
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 8 |
| #define | TOUCH_SCL 48 |
| #define | TOUCH_IRQ 1 |
| #define | TOUCH_RST 1 |
Functions | |
| void | TouchDrvDigitalWrite (uint8_t gpio, uint8_t level) |
| uint8_t | TouchDrvDigitalRead (uint8_t gpio) |
| void | TouchDrvPinMode (uint8_t gpio, uint8_t mode) |
| bool | setupTouchDrv () |
| void | setup () |
| void | loop () |
Variables | |
| TouchDrvInterface * | touchDrv |
| IoExpanderXL9555 | expander |
| int16_t | x [5] |
| int16_t | y [5] |
| uint8_t | expander_io_tp_reset = 1 |
@license MIT License
Copyright (c) 2025 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 touch_interface.ino.
| #define TOUCH_IRQ 1 |
Definition at line 44 of file touch_interface.ino.
| #define TOUCH_RST 1 |
Definition at line 48 of file touch_interface.ino.
| #define TOUCH_SCL 48 |
Definition at line 40 of file touch_interface.ino.
| #define TOUCH_SDA 8 |
Definition at line 36 of file touch_interface.ino.
| void loop | ( | ) |
Definition at line 178 of file touch_interface.ino.
References TouchPoints::getPoint(), TouchPoints::getPointCount(), TouchDrvInterface::getTouchPoints(), TouchPoints::hasPoints(), i, touchDrv, TouchPoint::x, and TouchPoint::y.
| void setup | ( | ) |
Definition at line 140 of file touch_interface.ino.
References TouchDrvInterface::begin(), I2CDeviceNoHal::begin(), expander, setupTouchDrv(), TOUCH_SCL, and TOUCH_SDA.
| bool setupTouchDrv | ( | ) |
Definition at line 88 of file touch_interface.ino.
References TouchDrvInterface::begin(), expander_io_tp_reset, TouchDrvInterface::getModelName(), TouchDrvFT6X36::interruptPolling(), TouchDrvInterface::setGpioCallback(), TouchDrvInterface::setPins(), TOUCH_IRQ, TOUCH_SCL, TOUCH_SDA, touchDrv, TouchDrvDigitalRead(), TouchDrvDigitalWrite(), and TouchDrvPinMode().
Referenced by setup().
| uint8_t TouchDrvDigitalRead | ( | uint8_t | gpio | ) |
Definition at line 70 of file touch_interface.ino.
References IoExpanderBase::digitalRead(), and expander.
Referenced by setupTouchDrv().
| void TouchDrvDigitalWrite | ( | uint8_t | gpio, |
| uint8_t | level | ||
| ) |
Definition at line 61 of file touch_interface.ino.
References IoExpanderBase::digitalWrite(), expander, and level.
Referenced by setupTouchDrv().
| void TouchDrvPinMode | ( | uint8_t | gpio, |
| uint8_t | mode | ||
| ) |
Definition at line 79 of file touch_interface.ino.
References expander, and IoExpanderBase::pinMode().
Referenced by setupTouchDrv().
| IoExpanderXL9555 expander |
Definition at line 54 of file touch_interface.ino.
Referenced by setup(), TouchDrvDigitalRead(), TouchDrvDigitalWrite(), and TouchDrvPinMode().
| uint8_t expander_io_tp_reset = 1 |
Definition at line 59 of file touch_interface.ino.
Referenced by setupTouchDrv().
| TouchDrvInterface* touchDrv |
Definition at line 52 of file touch_interface.ino.
Referenced by loop(), and setupTouchDrv().
| int16_t x[5] |
Definition at line 56 of file touch_interface.ino.
Referenced by TouchPoints::addPoint(), calibrate(), SensorQMI8658::getAccelerometer(), AccelerometerUtils::getDirection(), SensorQMI8658::getGyroscope(), TouchDrvInterface::getMaxCoordinates(), TouchDrvInterface::getResolution(), TouchDrvCSTXXX::getResolution(), TouchDrvCHSC5816::getTouchPoints(), TouchDrvCST226::getTouchPoints(), TouchDrvCST816::getTouchPoints(), TouchDrvCST92xx::getTouchPoints(), TouchDrvFT6X36::getTouchPoints(), TouchDrvGT911::getTouchPoints(), TouchDrvGT9895::getTouchPoints(), TouchDrvHI8561::getTouchPoints(), loop(), SensorQMI8658::readAccel(), SensorQMI8658::readAccelRaw(), SensorQMC5883L::readData(), SensorQSTMagnetic::readData(), SensorQMI8658::readFromFifo(), SensorQMI8658::readFromFifo(), SensorQMI8658::readGyro(), SensorQMI8658::readGyroRaw(), SensorQMI8658::setAccelOffset(), TouchDrvInterface::setCenterButtonCoordinate(), TouchDrvCSTXXX::setCenterButtonCoordinate(), SensorQMI8658::setGyroOffset(), TouchDrvInterface::setMaxCoordinates(), TouchDrvCSTXXX::setMaxCoordinates(), SensorBase< T >::setOffset(), AXP192Gpio::setPwm(), and AXP192Gpio::setPwmFrequency().
| int16_t y[5] |
Definition at line 56 of file touch_interface.ino.
Referenced by TouchPoints::addPoint(), calibrate(), SensorQMI8658::getAccelerometer(), AccelerometerUtils::getDirection(), SensorQMI8658::getGyroscope(), TouchDrvInterface::getMaxCoordinates(), TouchDrvInterface::getResolution(), TouchDrvCSTXXX::getResolution(), TouchDrvCHSC5816::getTouchPoints(), TouchDrvCST226::getTouchPoints(), TouchDrvCST816::getTouchPoints(), TouchDrvCST92xx::getTouchPoints(), TouchDrvFT6X36::getTouchPoints(), TouchDrvGT911::getTouchPoints(), TouchDrvGT9895::getTouchPoints(), TouchDrvHI8561::getTouchPoints(), loop(), SensorQMI8658::readAccel(), SensorQMI8658::readAccelRaw(), SensorQMC5883L::readData(), SensorQSTMagnetic::readData(), SensorQMI8658::readFromFifo(), SensorQMI8658::readFromFifo(), SensorQMI8658::readGyro(), SensorQMI8658::readGyroRaw(), SensorQMI8658::setAccelOffset(), TouchDrvInterface::setCenterButtonCoordinate(), TouchDrvCSTXXX::setCenterButtonCoordinate(), SensorQMI8658::setGyroOffset(), TouchDrvInterface::setMaxCoordinates(), TouchDrvCSTXXX::setMaxCoordinates(), and SensorBase< T >::setOffset().