Sensors: DHT11, TEMT600 Analog ambient light sensor This version uses the ARCH_GPRS_V2_HW library.

Dependencies:   ARCH_GPRS_V2_HW Blinker DHT GPRSInterface HTTPClient_GPRS SDFileSystem mbed

Fork of roam_v1 by Cellular building monitoring

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_V2_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 //