![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A DTMF sequence editor and player for HAM radio equipment command & control.
mbed_display_manager.hpp@0:1324e7d9d471, 2011-03-07 (annotated)
- Committer:
- osmeest
- Date:
- Mon Mar 07 22:51:19 2011 +0000
- Revision:
- 0:1324e7d9d471
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
osmeest | 0:1324e7d9d471 | 1 | #ifndef _MBED_DISPLAY_INTERFACE_HPP |
osmeest | 0:1324e7d9d471 | 2 | #define _MBED_DISPLAY_INTERFACE_HPP |
osmeest | 0:1324e7d9d471 | 3 | |
osmeest | 0:1324e7d9d471 | 4 | #include "display_manager.hpp" |
osmeest | 0:1324e7d9d471 | 5 | #include "ext_text_lcd/TextLCD.h" |
osmeest | 0:1324e7d9d471 | 6 | |
osmeest | 0:1324e7d9d471 | 7 | class MbedDisplayManager : public DisplayManager { |
osmeest | 0:1324e7d9d471 | 8 | public: |
osmeest | 0:1324e7d9d471 | 9 | MbedDisplayManager(); |
osmeest | 0:1324e7d9d471 | 10 | |
osmeest | 0:1324e7d9d471 | 11 | virtual void moveTo(std::size_t pos); |
osmeest | 0:1324e7d9d471 | 12 | virtual void writeStatus(const std::string &text); |
osmeest | 0:1324e7d9d471 | 13 | virtual void writeText(const std::string &text); |
osmeest | 0:1324e7d9d471 | 14 | virtual void showCursor(); |
osmeest | 0:1324e7d9d471 | 15 | virtual void hideCursor(); |
osmeest | 0:1324e7d9d471 | 16 | virtual void clear(); |
osmeest | 0:1324e7d9d471 | 17 | |
osmeest | 0:1324e7d9d471 | 18 | private: |
osmeest | 0:1324e7d9d471 | 19 | void writeAt(std::size_t row, const std::string &text); |
osmeest | 0:1324e7d9d471 | 20 | void updateCursor(); |
osmeest | 0:1324e7d9d471 | 21 | |
osmeest | 0:1324e7d9d471 | 22 | ext_text_lcd::TextLCD lcd; |
osmeest | 0:1324e7d9d471 | 23 | std::size_t pos; |
osmeest | 0:1324e7d9d471 | 24 | }; |
osmeest | 0:1324e7d9d471 | 25 | |
osmeest | 0:1324e7d9d471 | 26 | #endif |