Ben Gordon
/
ELEC351_GroupA-branch1
Troubleshooting
Diff: Display.cpp
- Revision:
- 15:f8649829dff9
- Parent:
- 13:d49ec153d644
- Child:
- 16:df78620cb307
--- a/Display.cpp Thu Nov 08 22:49:39 2018 +0000 +++ b/Display.cpp Thu Nov 08 23:13:15 2018 +0000 @@ -12,10 +12,11 @@ void Display::pageOne() { - _lcd.clear(); + _lcd.clear(); + _lcd.disableCursor(); //Temperature Display - _lcd.display("T: "); + _lcd.display("T: ",LINE1); _lcd.display(_temperature); _lcd.putt(223); _lcd.display("C"); @@ -28,15 +29,83 @@ _lcd.display("P: ",LINE2+2); _lcd.display(_pressure); _lcd.display(" mbar"); + _lcd.enableCursor(); } void Display::pageTwo() { _lcd.clear(); - _lcd.display("dd/mm/yyyy",LINE1+3); - _lcd.display("hh:mm am",LINE2+4); + _lcd.enableCursor(); + + _lcd.display("01/01/2018 00:00",LINE1); + _lcd.display("dd/mm/yyyy hh:mm",LINE2); + + _lcd.pos(LINE1); +} + +void Display::day10() +{ + +} + +void Display::day1() +{ + +} + +void Display::month10() +{ + +} + +void Display::month1() +{ + +} + +void Display::year1000() +{ + } +void Display::year100() +{ + +} + +void Display::year10() +{ + +} + +void Display::year1() +{ + +} + +void Display::hour10() +{ + +} + +void Display::hour1() +{ + +} + +void Display::minute10() +{ + +} + +void Display::minute1() +{ + +} + +void Display:: + + void Display::setTemperature(S_BYTE temp) { sprintf(_temperature,"%d",temp);