Toyomasa Watarai
/
test_DEV-10508
SparkFun touch shield DEV010508
SparkFun touch shield DEV-10508
https://www.sparkfun.com/products/12013
Revision 1:84c75be2d6af, committed 2016-02-25
- Comitter:
- MACRUM
- Date:
- Thu Feb 25 10:47:20 2016 +0000
- Parent:
- 0:63b58e114ea5
- Commit message:
- Add LPC824 target support
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 63b58e114ea5 -r 84c75be2d6af main.cpp --- a/main.cpp Sun Jul 12 09:26:06 2015 +0000 +++ b/main.cpp Thu Feb 25 10:47:20 2016 +0000 @@ -4,21 +4,21 @@ Serial pc(USBTX, USBRX); DigitalOut myled(LED1); -#if defined TARGET_LPC1768 || TARGET_LPC11U24 +#if defined(TARGET_LPC1768) || defined(TARGET_LPC11U24) I2C i2c(p28, p27); InterruptIn irq(p26); MPR121 touch_pad(i2c, irq, MPR121::ADDR_VSS); #define LED_ON 1 #define LED_OFF 0 -#elif defined TARGET_KL25Z +#elif defined(TARGET_KL25Z) I2C i2c(PTC9, PTC8); InterruptIn irq(PTA5); MPR121 touch_pad(i2c, irq, MPR121::ADDR_VSS); #define LED_ON 0 #define LED_OFF 1 -#elif defined TARGET_LPC11U68 +#elif defined(TARGET_LPC11U68) || defined(TARGET_LPC824) I2C i2c(A4, A5); InterruptIn irq(D2); MPR121 touch_pad(i2c, irq, MPR121::ADDR_VSS);