sample code for LPC810 ToraGi I2C board. you can compile it by mbed compiler.

Dependencies:   mbed

Fork of lpc810_helloworld by Norimasa Okamoto

Revision:
1:67310303497a
Parent:
0:9b94dbd65a21
Child:
2:3d19f6b24059
--- a/main.cpp	Sat Dec 14 11:42:44 2013 +0000
+++ b/main.cpp	Wed Aug 27 04:14:22 2014 +0000
@@ -1,13 +1,23 @@
 #include "mbed.h"
 
-//DigitalOut myled(LED1);
-DigitalOut myled(P0_0); //lpc810 dp8
+// LPC810 pinout
+#define dp1 P0_5  // nRESET
+#define dp2 P0_4  // WAKEUP
+#define dp3       // SWCLK
+#define dp4       // SWDIO
+#define dp5 P0_1  // nISP
+#define dp6       // VIN
+#define dp7       // GND
+#define dp8 P0_0
+
+DigitalOut myled(dp8);
 
 int main() {
     while(1) {
         myled = 1;
-        wait(0.2);
+        wait_ms(200);
         myled = 0;
-        wait(0.2);
+        wait_ms(200);
     }
 }
+