https://github.com/futuresharks/circuitpython-at42qt2120
CircuitPython library for the AT42QT2120 IC: Capacitive touch controller with 12 buttons
https://github.com/futuresharks/circuitpython-at42qt2120
Last synced: about 1 year ago
JSON representation
CircuitPython library for the AT42QT2120 IC: Capacitive touch controller with 12 buttons
- Host: GitHub
- URL: https://github.com/futuresharks/circuitpython-at42qt2120
- Owner: FutureSharks
- License: gpl-3.0
- Created: 2018-07-28T10:38:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T17:38:15.000Z (almost 8 years ago)
- Last Synced: 2025-02-12T21:34:28.777Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 583 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CircuitPython library for AT42QT2120

 CircuitPython library for the AT42QT2120 IC, a capacitive touch controller with 12 buttons.
Product page: https://www.microchip.com/wwwproducts/en/AT42QT2120
### Examples
```python
at42 = at42qt2120.AT42QT2120(i2c, at42_change_pin)
# Detect of any keys are touched
if at42.change_detected():
print('Touch detected')
# Enable slider or wheel mode. Position is between 0-255
at42.enable_slider()
print(at42.get_slider_wheel_position())
# Get detection signal from key 3. Result is between 0-65535
at42.get_key_signal(3)
```