Example using sensors from the mbed apps board or shield

Dependencies:   C027 LM75B MMA7660 mbed

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Mon Feb 03 19:06:02 2014 +0000
Parent:
3:682a0098a325
Commit message:
updated apps board

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 682a0098a325 -r 3cdb403b30e2 main.cpp
--- a/main.cpp	Mon Feb 03 13:39:47 2014 +0000
+++ b/main.cpp	Mon Feb 03 19:06:02 2014 +0000
@@ -4,8 +4,8 @@
 #include "LM75B.h"
 #include "MMA7660.h"
 
-#define MBED_APPS_SHIELD
-//#define MBED_APPS_BOARD
+//#define MBED_APPS_SHIELD
+#define MBED_APPS_BOARD
 
 #if defined(MBED_APPS_SHIELD)
   C12832_LCD lcd(D11, D13, D12, D7, D10);
@@ -15,6 +15,8 @@
 #elif defined(MBED_APPS_BOARD)
   C12832_LCD lcd(p5, p7, p6, p8, p11);
   DigitalOut myled(LED1);
+  LM75B temperature_sensor(p28, p27);
+  MMA7660 mma(p28, p27);
 #else
 #error application board not defined
 #endif