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!!
Revision 4:c1bc00c5e8e5, committed 2014-04-07
- Comitter:
- sam_grove
- Date:
- Mon Apr 07 16:05:30 2014 +0000
- Parent:
- 3:828260f21de6
- Child:
- 6:b6bb38744edd
- Commit message:
- corrected typos
Changed in this revision
MPR121.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;