This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.

Dependents:   200943412_QuickClick

Revision:
4:b74041216336
Parent:
2:f0ecd70c9ea2
Child:
5:f8df5fe3dc6c
--- a/Display.cpp	Tue Apr 11 22:49:11 2017 +0000
+++ b/Display.cpp	Tue Apr 11 23:19:22 2017 +0000
@@ -45,9 +45,11 @@
     lcd.refresh();
     } 
 
-void Display::calculateWait() 
+int Display::calculateWait() 
 {  
    _w = 0.4*exp(-0.03465*_h);
+    
+    return _v;
 } 
    
 void Display::random_instruction(N5110 &lcd) { 
@@ -55,11 +57,11 @@
     if (_v == 1){
         lcd.printChar('A',42,3); } 
     else if (_v == 2){
+        lcd.printChar('B',42,3); }  
+    else if (_v == 3){
         lcd.printChar('X',42,3); }  
-    else if (_v == 3){
+    else {
         lcd.printChar('Y',42,3); }  
-    else {
-        lcd.printChar('B',42,3); }  
     lcd.refresh(); 
     }