Olivier Smeesters
/
DtmfKit
A DTMF sequence editor and player for HAM radio equipment command & control.
Diff: mbed_display_manager.hpp
- Revision:
- 0:1324e7d9d471
diff -r 000000000000 -r 1324e7d9d471 mbed_display_manager.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed_display_manager.hpp Mon Mar 07 22:51:19 2011 +0000 @@ -0,0 +1,26 @@ +#ifndef _MBED_DISPLAY_INTERFACE_HPP +#define _MBED_DISPLAY_INTERFACE_HPP + +#include "display_manager.hpp" +#include "ext_text_lcd/TextLCD.h" + +class MbedDisplayManager : public DisplayManager { +public: + MbedDisplayManager(); + + virtual void moveTo(std::size_t pos); + virtual void writeStatus(const std::string &text); + virtual void writeText(const std::string &text); + virtual void showCursor(); + virtual void hideCursor(); + virtual void clear(); + +private: + void writeAt(std::size_t row, const std::string &text); + void updateCursor(); + + ext_text_lcd::TextLCD lcd; + std::size_t pos; +}; + +#endif \ No newline at end of file