Program for the water play project for the course Software Testing Practical 2016 given at the VU University
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: LCDController.cpp
- Revision:
- 6:067e999b9c6e
- Parent:
- 3:d7ce3a1a34fb
- Child:
- 7:8b3aef52aa7b
--- a/LCDController.cpp Wed Jun 08 13:37:18 2016 +0000 +++ b/LCDController.cpp Fri Jun 10 10:53:56 2016 +0000 @@ -1,1 +1,25 @@ -#include "LCDController.h" \ No newline at end of file +#include "LCDController.h" + +TextLCD lcd(p5, p6, p7, p8, p9, p10, TextLCD::LCD16x2); + + + +LCDController::LCDController() +{ + printf("Initiate LCD Controller\n\r"); + lcd.cls(); + +} + +void LCDController::splash() +{ + lcd.cls(); + lcd.printf("Welcome to\nSaltware"); + wait(2.0); +} + +void LCDController::updateScreen(float displaytemp, float saltvolt) +{ + lcd.cls(); + lcd.printf("Temp: %.1fC\nSalt: %.3fV",displaytemp,saltvolt); +}