SmartREST client reference implementation for the u-blox C027 mbed compatible device.

Dependencies:   C027 C027_Support mbed mbed-rtos MbedSmartRest LM75B MMA7660 C12832

Fork of MbedSmartRestTest by Vincent Wochnik

Files at this revision

API Documentation at this revision

Comitter:
vwochnik
Date:
Tue Feb 18 13:59:21 2014 +0000
Parent:
13:4045b6ac448d
Child:
15:0ccf0f530a05
Commit message:
fix

Changed in this revision

io.cpp Show annotated file Show diff for this revision Revisions of this file
io.h Show annotated file Show diff for this revision Revisions of this file
--- a/io.cpp	Sun Feb 16 17:44:15 2014 +0000
+++ b/io.cpp	Tue Feb 18 13:59:21 2014 +0000
@@ -7,10 +7,11 @@
 
 void thread_callback(void const*);
 
-// adjust pin numbers
-LM75B tempSensor(p28, p27);
+// Using Arduino pin notation
+LM75B tempSensor(SDA, SCL);
 MMA7660 accSensor(p28, p27);
 DigitalIn button(p14);
+//C12832 lcdDisplay(D11, D13, D12, D7, D10);
 
 Thread worker(thread_callback);
 
--- a/io.h	Sun Feb 16 17:44:15 2014 +0000
+++ b/io.h	Tue Feb 18 13:59:21 2014 +0000
@@ -4,6 +4,18 @@
 #include "common.h"
 #include "LM75B.h"
 #include "MMA7660.h"
+//#include "C12832.h"
+
+// Map the LPC1768 pins to the arduino pin names
+// These are the only things that are constant between ARCH, FRDM, u-blox etc
+#define D5  P2_1
+#define D7  P2_11
+#define D10 P1_21
+#define D11 P1_24
+#define D12 P1_23
+#define D13 P1_20
+#define SDA P0_0
+#define SCL P0_1
 
 typedef struct
 {