This class encapsulates all the algorithms required for the displaying strings and time dependent patterns on the lcd.
Dependents: 200943412_QuickClick
Diff: Display.cpp
- Revision:
- 8:aa20647ac4e6
- Parent:
- 7:635883dd8c35
- Child:
- 9:1e25dcab4927
--- a/Display.cpp Wed Apr 12 23:45:40 2017 +0000 +++ b/Display.cpp Fri Apr 14 23:42:33 2017 +0000 @@ -6,7 +6,7 @@ Display::Display() { _h = 0; - _w = 0.4; + _w = 0.3; _a = 0; _A = 0; _v = 0; @@ -24,7 +24,7 @@ { _h = 0; - _w = 0.4; + _w = 0.3; _a = 0; _A = 0; _v = 0; @@ -45,7 +45,7 @@ void Display::calculateWait() { - _w = 0.4*exp(-0.03465*_h); + _w = 0.3*exp(-0.03465*_h); } @@ -71,7 +71,7 @@ lcd.printChar('R',40,3); } else { lcd.printString("PRESS",28,2); - lcd.printString("JS",37,3); } + lcd.printString("STICK",37,2); } lcd.refresh(); }