Updated with option to return from BP screen to main screen, resolved screen navigation issues
Dependencies: SDFileSystem TFTLCD_8bit ds3231 program mbed
Fork of poc_dis_5 by
Diff: i2c_dec.cpp
- Revision:
- 1:8316c23ec6b9
- Child:
- 4:6bd81bb1790d
diff -r c47fb0c1bbf6 -r 8316c23ec6b9 i2c_dec.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/i2c_dec.cpp Mon Jan 30 07:45:41 2017 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" +#define ADDR 0x70 + +void i2c_spec() +{ +I2C i2c(PTC11, PTC10); + char dat[1]; + i2c.start(); + dat[0]=0xBB; + i2c.write(ADDR,dat,1); + i2c.stop(); + +} \ No newline at end of file