v2 i2c slave sending 4 bit sensor data to master
Fork of xslave by
slave.h@1:255616146873, 2014-07-07 (annotated)
- Committer:
- viswachaitanya
- Date:
- Mon Jul 07 07:28:35 2014 +0000
- Revision:
- 1:255616146873
- Parent:
- 0:acc1f8a1b321
v2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
viswachaitanya | 0:acc1f8a1b321 | 1 | #include "mbed.h" |
viswachaitanya | 1:255616146873 | 2 | #define WriteGeneral 3 |
viswachaitanya | 1:255616146873 | 3 | #define ReadAddressed 1 |
viswachaitanya | 1:255616146873 | 4 | #define slave_address 0x20 |
viswachaitanya | 0:acc1f8a1b321 | 5 | void write_to_master(char); //function to write data to master |
viswachaitanya | 1:255616146873 | 6 | void FUNC_I2C_SLAVE_MAIN(int iterations); |