![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
created separate function for hex to char
Dependencies: SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217
Fork of SS_SensePOC2P0_11Dec2017_USERPID by
i2c_dec.cpp
- Committer:
- rashmivenkataramaiah
- Date:
- 2017-12-12
- Revision:
- 76:611154b3b597
- Parent:
- 4:6bd81bb1790d
File content as of revision 76:611154b3b597:
#include "mbed.h" #define ADDR 0x70 // address of the I2C void i2c_spec() { I2C i2c(PTC11, PTC10); char dat[1]; i2c.start(); dat[0]=0xBB; i2c.write(ADDR,dat,1); i2c.stop(); }