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
Diff: MCUGearBaseA.cpp
- Revision:
- 1:95255bae41c8
- Parent:
- 0:12d93184b350
--- a/MCUGearBaseA.cpp Sun Mar 09 09:33:14 2014 +0000 +++ b/MCUGearBaseA.cpp Sat May 03 16:56:16 2014 +0000 @@ -23,19 +23,13 @@ #include "mbed.h" #include "MCUGearBaseA.h" -#if defined TARGET_LPC1768 -I2C fpga_i2c(p28, p27); -#endif - -#if defined TARGET_KL25Z -I2C fpga_i2c(PTE0, PTE1); -#endif +I2C fpga_i2c(dp5, dp27); void fpga_write(int dev_adr,unsigned char adr, unsigned char data) { char cmd[2]; cmd[0] = adr; cmd[1] = data; - fpga_i2c.frequency (FPGA_I2C_CLOCK); + //fpga_i2c.frequency (FPGA_I2C_CLOCK); fpga_i2c.write(dev_adr, cmd, 2); }