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
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 //
Generated on Fri Jul 15 2022 02:06:18 by 1.7.2