Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: AdaFruit_RGBLCDShield MCP23017 mbed RTclock
Fork of MCP_test by
MenuManager/lcd.h@28:fbcd3bac0cd7, 2014-10-10 (annotated)
- Committer:
- vtraveller
- Date:
- Fri Oct 10 11:10:56 2014 +0000
- Revision:
- 28:fbcd3bac0cd7
- Parent:
- 25:24654d08a99a
Reduced write delay - faster LCD response
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vtraveller | 25:24654d08a99a | 1 | #ifndef __LCD_H__ |
| vtraveller | 25:24654d08a99a | 2 | #define __LCD_H__ |
| vtraveller | 25:24654d08a99a | 3 | |
| vtraveller | 25:24654d08a99a | 4 | class LCD |
| vtraveller | 25:24654d08a99a | 5 | : public Serial // for printf |
| vtraveller | 25:24654d08a99a | 6 | { |
| vtraveller | 25:24654d08a99a | 7 | public: |
| vtraveller | 25:24654d08a99a | 8 | LCD(I2C & in_cI2C); |
| vtraveller | 25:24654d08a99a | 9 | virtual int _putc(int c) = 0; |
| vtraveller | 25:24654d08a99a | 10 | |
| vtraveller | 25:24654d08a99a | 11 | virtual void clear() = 0; |
| vtraveller | 25:24654d08a99a | 12 | virtual uint8_t columns() = 0; |
| vtraveller | 25:24654d08a99a | 13 | virtual void createChar(uint8_t location, uint8_t charmap[]) = 0; |
| vtraveller | 25:24654d08a99a | 14 | virtual void home() = 0; |
| vtraveller | 25:24654d08a99a | 15 | virtual uint8_t rows() = 0; |
| vtraveller | 25:24654d08a99a | 16 | virtual void setCursor(uint8_t in_nX, uint8_t in_nY) = 0; |
| vtraveller | 25:24654d08a99a | 17 | virtual void showBlink(bool in_bShow) = 0; |
| vtraveller | 25:24654d08a99a | 18 | virtual void showCursor(bool in_bShow) = 0; |
| vtraveller | 25:24654d08a99a | 19 | virtual void showDisplay(bool in_bShow) = 0; |
| vtraveller | 25:24654d08a99a | 20 | |
| vtraveller | 25:24654d08a99a | 21 | protected: |
| vtraveller | 25:24654d08a99a | 22 | I2C & m_cI2C; |
| vtraveller | 25:24654d08a99a | 23 | }; |
| vtraveller | 25:24654d08a99a | 24 | |
| vtraveller | 25:24654d08a99a | 25 | #endif // __LCD_H__ |
