mbed-os
Fork of mbed-os by
features/unsupported/tests/mbed/freopen/TextLCD.h@0:f269e3021894, 2016-10-23 (annotated)
- Committer:
- elessair
- Date:
- Sun Oct 23 15:10:02 2016 +0000
- Revision:
- 0:f269e3021894
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
elessair | 0:f269e3021894 | 1 | /* mbed TextLCD Library Base Class |
elessair | 0:f269e3021894 | 2 | * Copyright (c) 2007-2009 sford |
elessair | 0:f269e3021894 | 3 | * Released under the MIT License: http://mbed.org/license/mit |
elessair | 0:f269e3021894 | 4 | */ |
elessair | 0:f269e3021894 | 5 | #include "TextDisplay.h" |
elessair | 0:f269e3021894 | 6 | |
elessair | 0:f269e3021894 | 7 | #ifndef MBED_TEXTLCD_H |
elessair | 0:f269e3021894 | 8 | #define MBED_TEXTLCD_H |
elessair | 0:f269e3021894 | 9 | |
elessair | 0:f269e3021894 | 10 | class TextLCD : public TextDisplay { |
elessair | 0:f269e3021894 | 11 | public: |
elessair | 0:f269e3021894 | 12 | |
elessair | 0:f269e3021894 | 13 | TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, const char *name = NULL); |
elessair | 0:f269e3021894 | 14 | virtual void character(int column, int row, int c); |
elessair | 0:f269e3021894 | 15 | virtual int rows(); |
elessair | 0:f269e3021894 | 16 | virtual int columns(); |
elessair | 0:f269e3021894 | 17 | |
elessair | 0:f269e3021894 | 18 | // locate, cls, putc, printf come from derived class |
elessair | 0:f269e3021894 | 19 | |
elessair | 0:f269e3021894 | 20 | protected: |
elessair | 0:f269e3021894 | 21 | |
elessair | 0:f269e3021894 | 22 | void writeByte(int value); |
elessair | 0:f269e3021894 | 23 | void writeCommand(int command); |
elessair | 0:f269e3021894 | 24 | void writeData(int data); |
elessair | 0:f269e3021894 | 25 | |
elessair | 0:f269e3021894 | 26 | DigitalOut _rw, _rs, _e; |
elessair | 0:f269e3021894 | 27 | BusOut _d; |
elessair | 0:f269e3021894 | 28 | }; |
elessair | 0:f269e3021894 | 29 | |
elessair | 0:f269e3021894 | 30 | #endif |