![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jkjkjkjk
Fork of all_combined_week6 by
main.cpp@7:5cf19bfdbacd, 2014-07-17 (annotated)
- Committer:
- viswachaitanya
- Date:
- Thu Jul 17 11:22:41 2014 +0000
- Revision:
- 7:5cf19bfdbacd
- Parent:
- 6:82153349cc9b
i2c test slave
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
harshit_felicity | 0:cbe0ea884289 | 1 | #include "mbed.h" |
harshit_felicity | 0:cbe0ea884289 | 2 | #include "slave.h" |
harshit_felicity | 0:cbe0ea884289 | 3 | |
harshit_felicity | 0:cbe0ea884289 | 4 | |
harshit_felicity | 0:cbe0ea884289 | 5 | int main() |
harshit_felicity | 0:cbe0ea884289 | 6 | { |
harshit_felicity | 0:cbe0ea884289 | 7 | |
viswachaitanya | 7:5cf19bfdbacd | 8 | while(true) |
harshit_felicity | 0:cbe0ea884289 | 9 | { |
viswachaitanya | 7:5cf19bfdbacd | 10 | wait(0.5); |
viswachaitanya | 7:5cf19bfdbacd | 11 | FUNC_I2C_SLAVE_MAIN(24); |
viswachaitanya | 7:5cf19bfdbacd | 12 | wait(10); |
harshit_felicity | 0:cbe0ea884289 | 13 | } |
viswachaitanya | 7:5cf19bfdbacd | 14 | } |