seeedstudio ARCH GPRS Demo. post data to yeelink.

Dependencies:   mbed

Committer:
loovee
Date:
Fri Aug 23 02:31:06 2013 +0000
Revision:
0:6d297fe482af
seeedstudio Arch Gprs Demo. ; ; post data to yeelink.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
loovee 0:6d297fe482af 1 #include "mbed.h"
loovee 0:6d297fe482af 2 #include "i2c_uart.h"
loovee 0:6d297fe482af 3 #include "ARCH_GPRS_HW_DFS.h"
loovee 0:6d297fe482af 4
loovee 0:6d297fe482af 5 #define ADDRESS 8
loovee 0:6d297fe482af 6
loovee 0:6d297fe482af 7 I2C i2c_debug(GROVE_I2C_SDA, GROVE_I2C_SCL);
loovee 0:6d297fe482af 8
loovee 0:6d297fe482af 9
loovee 0:6d297fe482af 10 void debug_i2c(char *dta)
loovee 0:6d297fe482af 11 {
loovee 0:6d297fe482af 12 int len = strlen(dta);
loovee 0:6d297fe482af 13 i2c_debug.write(ADDRESS, dta, len);
loovee 0:6d297fe482af 14 //wait_ms(10);
loovee 0:6d297fe482af 15 }
loovee 0:6d297fe482af 16
loovee 0:6d297fe482af 17 void debug_i2c(char dta)
loovee 0:6d297fe482af 18 {
loovee 0:6d297fe482af 19 char dta1[5];
loovee 0:6d297fe482af 20 sprintf(dta1, "%c", dta);
loovee 0:6d297fe482af 21 debug_i2c(dta1);
loovee 0:6d297fe482af 22 }
loovee 0:6d297fe482af 23 //