Olivier Smeesters
/
DtmfKit
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: init_state.cpp
- Revision:
- 0:1324e7d9d471
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/init_state.cpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,17 @@ +#include "system_states.hpp" +#include "display_manager.hpp" + +void InitState::enterState() { + DisplayManager *display = system()->display(); + display->clear(); + display->hideCursor(); + display->writeStatus("DTMF-Kit v1.0"); + display->writeText(__DATE__ " / " __TIME__); + wait(2); +} + +void InitState::exitState() { + DisplayManager *display = system()->display(); + display->clear(); + display->hideCursor(); +}