draft2
Dependencies: ARCH_GPRS_V2_HW Blinker GPRSInterface HTTPClient_GPRS RTC_WorkingLibrary SDFileSystem USBDevice mbed
Diff: I2C_UART/i2c_uart.cpp
- Revision:
- 0:77d82c39b97c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/I2C_UART/i2c_uart.cpp Tue May 05 19:07:02 2015 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +#include "i2c_uart.h" +#include "ARCH_GPRS_V2_HW_DFS.h" + +#define ADDRESS 8 + +I2C i2c_debug(GROVE_I2C_SDA, GROVE_I2C_SCL); + + +void debug_i2c(char *dta) +{ + int len = strlen(dta); + i2c_debug.write(ADDRESS, dta, len); + //wait_ms(10); +} + +void debug_i2c(char dta) +{ + char dta1[5]; + sprintf(dta1, "%c", dta); + debug_i2c(dta1); +} +//