A device driver for the Freescale MPR121 capactive touch IC. Not optimized for any particular system, just a starting point to get the chip up in running in no time. Changes to registers init() method will tailor the library for end system use.
Dependents: Seeed_Grove_I2C_Touch_Example MPR121_HelloWorld mbed_petbottle_holder_shikake test_DEV-10508 ... more
Datasheet:
http://cache.freescale.com/files/sensors/doc/data_sheet/MPR121.pdf
Information
Must add pull-ups to the I2C bus!!
Diff: MPR121.cpp
- Revision:
- 4:c1bc00c5e8e5
- Parent:
- 3:828260f21de6
- Child:
- 6:b6bb38744edd
diff -r 828260f21de6 -r c1bc00c5e8e5 MPR121.cpp --- a/MPR121.cpp Tue Aug 27 21:39:33 2013 +0000 +++ b/MPR121.cpp Mon Apr 07 16:05:30 2014 +0000 @@ -173,7 +173,7 @@ if(result && DEBUG) { - debug("I2c write failed\n"); + debug("I2C write failed\n"); } return; @@ -189,7 +189,7 @@ if(result && DEBUG) { - debug("I2c read failed\n"); + debug("I2C read failed\n"); } return data;