DEMO
Dependencies: mbed
Fork of MPR121_Demo by
Diff: main.cpp
- Revision:
- 1:4e809692213a
- Parent:
- 0:e09703934ff4
--- a/main.cpp Wed Mar 16 01:49:13 2011 +0000 +++ b/main.cpp Mon Jun 12 17:10:20 2017 +0000 @@ -38,7 +38,7 @@ Serial pc(USBTX, USBRX); // Setup the i2c bus on pins 28 and 27 -I2C i2c(p9, p10); +I2C i2c(P0_29, P0_28); // Setup the Mpr121: // constructor(i2c object, i2c address of the mpr121) @@ -49,8 +49,7 @@ int i=0; int value=mpr121.read(0x00); value +=mpr121.read(0x01)<<8; - // LED demo mod by J. Hamblen - //pc.printf("MPR value: %x \r\n", value); + // LED demo mod by J. Hamble i=0; // puts key number out to LEDs for demo for (i=0; i<12; i++) {