Fix all the following issues which we faced during 01st April internal demo 1) Display hang and jump issue 2) Sequencing issue 3) Issue with BP code
Dependencies: SDFileSystem ds3231 program mbed testUniGraphic_150217
Fork of Int_Demo_01Apr2017_newdisplaycode_bp_nikita by
i2c_dec.cpp@12:ab85607bb10a, 2017-05-08 (annotated)
- Committer:
- nikitateggi
- Date:
- Mon May 08 05:19:22 2017 +0000
- Revision:
- 12:ab85607bb10a
- Parent:
- 4:6bd81bb1790d
POC code with new display and updated BP
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nikitateggi | 1:8316c23ec6b9 | 1 | #include "mbed.h" |
nikitateggi | 4:6bd81bb1790d | 2 | #define ADDR 0x70 // address of the I2C |
nikitateggi | 1:8316c23ec6b9 | 3 | |
nikitateggi | 1:8316c23ec6b9 | 4 | void i2c_spec() |
nikitateggi | 1:8316c23ec6b9 | 5 | { |
nikitateggi | 4:6bd81bb1790d | 6 | I2C i2c(PTC11, PTC10); |
nikitateggi | 1:8316c23ec6b9 | 7 | char dat[1]; |
nikitateggi | 4:6bd81bb1790d | 8 | i2c.start(); |
nikitateggi | 4:6bd81bb1790d | 9 | dat[0]=0xBB; |
nikitateggi | 4:6bd81bb1790d | 10 | i2c.write(ADDR,dat,1); |
nikitateggi | 4:6bd81bb1790d | 11 | i2c.stop(); |
nikitateggi | 1:8316c23ec6b9 | 12 | |
nikitateggi | 1:8316c23ec6b9 | 13 | } |