AT42QT1010 Capacitive Touch Sensor

Single output capacitive touch sensor from sparkfun.

Hello World

Import programAT42QT1010_Hello_world

Example Hello World example for interfacing the AT42QT1010 Device

Library

Import libraryAT42QT1010

Class header for the AT42QT1010 device.

Datasheet

http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Sensors/Capacitive/AT42QT1010_Datasheet.pdf

Notes

mbed PinSensor Pin
P26LED
VOUT=3.3VVDD
P25OUT
GNDGND

Import library

Public Member Functions

AT42QT1010 (PinName)
Define the device without use of the on-board LED.
AT42QT1010 (PinName, PinName)
Define the device using both breakout I/O pins.
void write (int state)
Writes to the LED, if defined.
int read ()
Take in the current value being output by the device.
operator int ()
Shorthand for read() .
void attach_rise (void(*fpr)(void))
Initiate interrupts for the rising edge of data.
void attach_fall (void(*fpr)(void))
Initiate interrupts for the falling edge of data.

You need to log in to post a discussion