![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Dependencies: SerialToI2C mbed
main.cpp@2:7d68b4d82ede, 2015-11-12 (annotated)
- Committer:
- inst
- Date:
- Thu Nov 12 08:05:48 2015 +0000
- Revision:
- 2:7d68b4d82ede
- Parent:
- 0:8d85dcffb6e8
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 0:8d85dcffb6e8 | 1 | #include "SerialToI2C.h" |
inst | 0:8d85dcffb6e8 | 2 | |
inst | 0:8d85dcffb6e8 | 3 | int main(){ |
inst | 0:8d85dcffb6e8 | 4 | SerialToI2C::create( /* sda */dp5, /* scl */dp27, /* tx */dp16, /* rx */dp15 ); |
inst | 0:8d85dcffb6e8 | 5 | |
inst | 0:8d85dcffb6e8 | 6 | while ( true ){ |
inst | 0:8d85dcffb6e8 | 7 | SerialToI2C::getInstance()->update(); |
inst | 0:8d85dcffb6e8 | 8 | } |
inst | 0:8d85dcffb6e8 | 9 | |
inst | 0:8d85dcffb6e8 | 10 | return 0; |
inst | 0:8d85dcffb6e8 | 11 | } |
inst | 0:8d85dcffb6e8 | 12 |