Connections to Xively working; has 5 channels on Xively (axl_x, axl_y, axl_z, heater_status, temperature)
Dependencies: C12832_lcd EthernetInterface LM75B MMA7660 NTPClient libxively mbed-rtos mbed
app_board_io.cpp@6:d5023e875887, 2014-06-02 (annotated)
- Committer:
- wren301
- Date:
- Mon Jun 02 19:13:07 2014 +0000
- Revision:
- 6:d5023e875887
Actually HW7 :) All connections to Xively operational as of last test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wren301 | 6:d5023e875887 | 1 | #include "app_board_io.h" |
wren301 | 6:d5023e875887 | 2 | #include "C12832_lcd.h" |
wren301 | 6:d5023e875887 | 3 | |
wren301 | 6:d5023e875887 | 4 | extern C12832_LCD lcd; |
wren301 | 6:d5023e875887 | 5 | |
wren301 | 6:d5023e875887 | 6 | extern "C" void lcd_printf( const char* fmt, ... ) |
wren301 | 6:d5023e875887 | 7 | { |
wren301 | 6:d5023e875887 | 8 | char buffer[ 64 ]; |
wren301 | 6:d5023e875887 | 9 | |
wren301 | 6:d5023e875887 | 10 | va_list ap; |
wren301 | 6:d5023e875887 | 11 | va_start( ap, fmt ); |
wren301 | 6:d5023e875887 | 12 | vsnprintf( buffer, 64, fmt, ap ); |
wren301 | 6:d5023e875887 | 13 | va_end( ap ); |
wren301 | 6:d5023e875887 | 14 | |
wren301 | 6:d5023e875887 | 15 | lcd.cls(); |
wren301 | 6:d5023e875887 | 16 | lcd.locate( 0, 3 ); |
wren301 | 6:d5023e875887 | 17 | lcd.printf( buffer ); |
wren301 | 6:d5023e875887 | 18 | //wait( 1.0 ); |
wren301 | 6:d5023e875887 | 19 | } |