set led to common anode

Dependencies:   C12832_lcd EthernetInterface LM75B MMA7660 libxively mbed-rtos mbed

Fork of xively-dreamforce by Ilya Dmitrichenko

Files at this revision

API Documentation at this revision

Comitter:
errordeveloper
Date:
Mon Nov 11 18:23:45 2013 +0000
Parent:
17:6457dc373c2d
Child:
19:ca595d80895b
Commit message:
Print to the LCD when updating/reading data

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Nov 11 18:04:50 2013 +0000
+++ b/main.cpp	Mon Nov 11 18:23:45 2013 +0000
@@ -90,13 +90,17 @@
         
       printf( "Updating output channels...\r\n" );
       progress_led = 0.6;
+      lcd_printf( "updating...\n" );
       xi_feed_update( xi_context, &output_channels );
       progress_led = 0.1;
-      printf( "   [%s]\r\n", xi_get_error_string( xi_get_last_error() ) );
-      
+      printf( "   [ec:%s]\r\n", xi_get_last_error() );
+    
       printf( "Reading input channels...\r\n" );
+      progress_led = 0.8;
+      lcd_printf( "reading...\n" );
       xi_feed_get( xi_context, &input_channels );
-      printf( "   [%s]\r\n", xi_get_error_string( xi_get_last_error() ) );
+      progress_led = 0.1;
+      printf( "   [ec:%s]\r\n", xi_get_last_error() );
       
       lcd_printf( "led: %s\nfan: %d\n", xi_value_pointer_str( led_ctl ), xi_get_value_i32( fan_ctl ) );