set led to common anode

Dependencies:   C12832_lcd EthernetInterface LM75B MMA7660 libxively mbed-rtos mbed

Fork of xively-dreamforce by Ilya Dmitrichenko

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers app_board_io.cpp Source File

app_board_io.cpp

00001 #include "mbed.h"
00002 #include "app_board_io.h"
00003 
00004 #include "C12832_lcd.h"
00005 
00006 extern C12832_LCD lcd;
00007 
00008 extern "C" void lcd_printf( const char* fmt, ...  )
00009 {
00010     char buffer[ 64 ];
00011     
00012     va_list ap;
00013     va_start( ap, fmt );
00014     vsnprintf( buffer, 64, fmt, ap );
00015     va_end( ap );
00016     
00017     lcd.cls();
00018     lcd.locate( 0, 3 );
00019     lcd.printf( buffer );
00020     //wait( 1.0 );
00021 }