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/i2c_uart.cpp
- Committer:
- seedteam20
- Date:
- 2015-04-01
- Revision:
- 0:b6b64c1e74bb
- Child:
- 1:3d2e110f5dc8
File content as of revision 0:b6b64c1e74bb:
#include "mbed.h" #include "i2c_uart.h" #include "ARCH_GPRS_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); } //