SparkFun touch shield DEV010508

Dependencies:   MPR121 mbed

SparkFun touch shield DEV-10508

https://www.sparkfun.com/products/12013

Revision:
1:84c75be2d6af
Parent:
0:63b58e114ea5
--- 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);