Using DHT11 sensor, sdWrite, wdt. Need to sleep more then this.

Dependencies:   DHT GPRSInterface HTTPClient_GPRS SDFileSystem USBDevice mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers i2c_uart.cpp Source File

i2c_uart.cpp

00001 #include "mbed.h"
00002 #include "i2c_uart.h"
00003 #include "ARCH_GPRS_HW_DFS.h"
00004 
00005 #define ADDRESS        8
00006 
00007 I2C i2c_debug(GROVE_I2C_SDA, GROVE_I2C_SCL);
00008 
00009 
00010 void debug_i2c(char *dta)
00011 {
00012     int len = strlen(dta);
00013     i2c_debug.write(ADDRESS, dta, len);
00014     //wait_ms(10);
00015 }
00016 
00017 void debug_i2c(char dta)
00018 {
00019     char dta1[5];
00020     sprintf(dta1, "%c", dta);
00021     debug_i2c(dta1);
00022 }
00023 //