
ControllerBox directs electromechanical equipment in restaurants to display information.
Dependencies: TextLCD MbedJSONValue libMotiv picojson mbed-rtos mbed
Fork of Mbed_MotiVControllerBox by
Diff: Controller.h
- Revision:
- 0:2279181caaa1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Controller.h Sat Oct 25 00:11:12 2014 +0000 @@ -0,0 +1,32 @@ +#ifndef MOTIV_CONTROLLER_H +#define MOTIV_CONTROLLER_H + +//Controller +#include <string> +#include "mbed.h" + +class Controller { +public: + enum cStatus { + READY, + WAITING, + BUSY, + ERROR + }; + Controller(TextLCD *lcd); + cStatus getStatus(); + string statusString(); + void setStatus(cStatus); + void displayStatus(); + + void displWriteLine(int row, char c); + + TextLCD *_lcd; + +private: + cStatus _status; + + +}; + +#endif \ No newline at end of file