This is a program that turns your mbed device into a FireFly gateway, that publishes data from FireFly BLE modules to the IBM Watson IoT Platform.
Dependencies: C12832 EthernetInterface MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
Diff: LPC1768.h
- Revision:
- 20:14a61a65afba
- Parent:
- 8:80d49dd91542
- Child:
- 23:03835082a0de
- Child:
- 24:437c753be4fd
--- a/LPC1768.h Mon Nov 09 13:33:45 2015 +0000 +++ b/LPC1768.h Fri Nov 13 13:15:31 2015 +0000 @@ -23,8 +23,8 @@ PwmOut r(p23); PwmOut g(p24); PwmOut b(p25); -MMA7660 MMA(p28, p27); -LM75B sensor(p28, p27); +//MMA7660 MMA(p28, p27); +//LM75B sensor(p28, p27); DigitalIn Down(p12); DigitalIn Left(p13); DigitalIn Click(p14); @@ -32,6 +32,9 @@ DigitalIn Right(p16); AnalogIn ain1(p19); AnalogIn ain2(p20); +//Matjaz +//I2CSlave slave(p28, p27); //p9sda p10scl +I2CSlave slave(p9, p10); #define LED2_OFF 0 #define LED2_ON 1