This Automatic mode is the most simple lib for MCU Gear with LPC1114FN28. You don't need to think about Bank.

Dependents:   MCUGearALPC1114FN28

Fork of MCUGearA by mille feuille

Revision:
1:95255bae41c8
Parent:
0:12d93184b350
diff -r 12d93184b350 -r 95255bae41c8 commonA.h
--- a/commonA.h	Sun Mar 09 09:33:14 2014 +0000
+++ b/commonA.h	Sat May 03 16:56:16 2014 +0000
@@ -23,8 +23,13 @@
 #define numBaseboardIO 48
 #define numMaxModuleIO 12
 
+
+#define BaudRate 9600
+#define FPGA_I2C_CLOCK    2000000
+#define MODULE_I2C_CLOCK    2000000
+
 //#define DEBUG //If you need to debug, define this.
-#if defined TARGET_LPC1768
+/*#if defined TARGET_LPC1768
 
 #define BaudRate 9600
 #define FPGA_I2C_CLOCK    1000000
@@ -39,7 +44,7 @@
 #define MODULE_I2C_CLOCK    2000000
 
 #endif
-
+*/
 
 #define FPGA_I2C_ADR 0x78