It can be run only with mbed LPC1768, LAN socket and DHT11 sensor. mbed application board is not needed.
Dependencies: DHT11 EthernetInterface MQTT mbed-rtos mbed
Fork of IBMIoTClientEthernetExample by
Example Photo
- 水魚堂さんの回路図エディタ BSch3V を利用して作成しました。回路図データ /media/uploads/strysd/simpleiot.ce3
- DHT11 は、masahiro's electronic lab さんで配布されている部品ライブラリを利用しました。http://www.eleclabo.com/denshi/doc/bschlib.html
Diff: LPC1768.h
- Revision:
- 20:d8387eff818d
- Parent:
- 8:80d49dd91542
--- a/LPC1768.h Mon May 23 13:48:48 2016 +0000 +++ b/LPC1768.h Sat Oct 15 05:55:27 2016 +0000 @@ -13,29 +13,24 @@ * Contributors: * Ian Craggs - initial implementation * Sam Grove - added mehtod to check the status of the Ethernet cable + ******************************************************************************* + * Forked by Satoru Yoshida 2016/Oct + * Removed support for mbed application board, this program can run only + * set of mbed LPC1768, LAN socket and DHT11 sensor *******************************************************************************/ #if !defined(LPC1768_H) #define LPC1768_H -C12832 lcd(p5, p7, p6, p8, p11); +#include "DHT11.h" + DigitalOut led2(LED2); -PwmOut r(p23); -PwmOut g(p24); -PwmOut b(p25); -MMA7660 MMA(p28, p27); -LM75B sensor(p28, p27); -DigitalIn Down(p12); -DigitalIn Left(p13); -DigitalIn Click(p14); -DigitalIn Up(p15); -DigitalIn Right(p16); -AnalogIn ain1(p19); -AnalogIn ain2(p20); #define LED2_OFF 0 #define LED2_ON 1 +DHT11 dht(p18); + #define DEFAULT_TYPE_NAME "iotsample-mbed-lpc1768" #include "lpc_phy.h"