The car is controlled by the PS2 controller and the temperature is sent on xively via the wifly.
Dependencies: C12832_lcd WiflyInterface libxively mbed-rtos mbed LM75B MMA7660
Fork of IOT-Project-Wifly-Xively by
app_board_io.cpp@7:c7023f76310e, 2014-06-09 (annotated)
- Committer:
- bhakti08
- Date:
- Mon Jun 09 22:53:04 2014 +0000
- Revision:
- 7:c7023f76310e
- Parent:
- 5:efa4a9eafe7d
Final
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bhakti08 | 5:efa4a9eafe7d | 1 | #include "app_board_io.h" |
bhakti08 | 5:efa4a9eafe7d | 2 | #include "C12832_lcd.h" |
bhakti08 | 5:efa4a9eafe7d | 3 | |
bhakti08 | 5:efa4a9eafe7d | 4 | extern C12832_LCD lcd; |
bhakti08 | 5:efa4a9eafe7d | 5 | |
bhakti08 | 5:efa4a9eafe7d | 6 | extern "C" void lcd_printf( const char* fmt, ... ) |
bhakti08 | 5:efa4a9eafe7d | 7 | { |
bhakti08 | 5:efa4a9eafe7d | 8 | char buffer[ 64 ]; |
bhakti08 | 5:efa4a9eafe7d | 9 | |
bhakti08 | 5:efa4a9eafe7d | 10 | va_list ap; |
bhakti08 | 5:efa4a9eafe7d | 11 | va_start( ap, fmt ); |
bhakti08 | 5:efa4a9eafe7d | 12 | vsnprintf( buffer, 64, fmt, ap ); |
bhakti08 | 5:efa4a9eafe7d | 13 | va_end( ap ); |
bhakti08 | 5:efa4a9eafe7d | 14 | |
bhakti08 | 5:efa4a9eafe7d | 15 | lcd.cls(); |
bhakti08 | 5:efa4a9eafe7d | 16 | lcd.locate( 0, 3 ); |
bhakti08 | 5:efa4a9eafe7d | 17 | lcd.printf( buffer ); |
bhakti08 | 5:efa4a9eafe7d | 18 | //wait( 1.0 ); |
bhakti08 | 5:efa4a9eafe7d | 19 | } |