This code is used to transmit the temperature sensed by the mbed to the xively via wifly. The car is self controlled.
Dependencies: C12832_lcd WiflyInterface libxively mbed-rtos mbed
Fork of Mode-1_PS2_Wifly_Xively by
app_board_io.cpp@6:9abfe16d39e0, 2014-06-09 (annotated)
- Committer:
- bhakti08
- Date:
- Mon Jun 09 12:18:36 2014 +0000
- Revision:
- 6:9abfe16d39e0
- Parent:
- 5:efa4a9eafe7d
Mode1 PS2-Wifly-Xively
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 | } |