From: Jon Langseth Date: Sun, 18 Mar 2012 21:20:11 +0000 (+0100) Subject: Code cleanup in display routine. X-Git-Url: https://git.defcon.no/?a=commitdiff_plain;h=5bbe7e09b58bbee59fbc4161f2ece5fcaf6993ad;p=rctxduino Code cleanup in display routine. --- diff --git a/source/RCTXDuino/RCTXDuino.pde b/source/RCTXDuino/RCTXDuino.pde index 1afb5ea..a317dfa 100644 --- a/source/RCTXDuino/RCTXDuino.pde +++ b/source/RCTXDuino/RCTXDuino.pde @@ -843,63 +843,54 @@ void ui_handler() switch ( displaystate ) { - case VALUES: - int current_input; + case VALUES: + int current_input; + + row = 0; col = 0; + lcd.setCursor(col, row); + lcd.print(" "); + lcd.setCursor(col, row); + + lcd.print("S1:"); + lcd.print( keys[KEY_DR1] ? "On " : "Off" ); + lcd.print(" S2:"); + lcd.print( keys[KEY_DR2] ? "On " : "Off" ); + + row = 2; col = 0; + for (current_input=0; current_input