Permalink
Browse files

move line 2 of LCD display to void setup() because it's static and it…

… doesn't need to be part of the loop (may not work however, needs to be tested if it works as desired)
  • Loading branch information...
kylezoa committed Apr 24, 2011
1 parent 63657c6 commit c4d5eff9f2cef0c7b6f4739a6c43e8dde70d15ea
Showing with 8 additions and 6 deletions.
  1. +8 −6 genaUhr.pde
View
@@ -45,6 +45,12 @@ void setup() {
//reset LED display on initial startup
Serial.print("v");
+
+ //line 2 of the LCD. notes regarding this below
+ slcdDisplay.print(0xfe, BYTE); slcdDisplay.print(0xc0, BYTE);
+ slcdDisplay.print("UTC/GPS");
+ slcdDisplay.print(0xfe, BYTE); slcdDisplay.print(0xc8, BYTE);
+ slcdDisplay.print("genaUhr b1");
}
@@ -75,6 +81,8 @@ void loop() {
<64-70, UTC/GPS (print out)> <73~, genaUhr b1>
send special character 254 then cursor position + 128
+
+ LINE 2 is at void setup() in order to save resources as the second line is completely static
*/
//line 1
@@ -88,12 +96,6 @@ void loop() {
slcdDisplay.print("-");
slcdDisplay.print(int(day));
- //line 2
- slcdDisplay.print(0xfe, BYTE); slcdDisplay.print(0xc0, BYTE);
- slcdDisplay.print("UTC/GPS");
- slcdDisplay.print(0xfe, BYTE); slcdDisplay.print(0xc8, BYTE);
- slcdDisplay.print("genaUhr b1");
-
} //end magic
} //end while
} //end loop

0 comments on commit c4d5eff

Please sign in to comment.