]> git.gir.st - tmk_keyboard.git/blob - tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h
Squashed 'tmk_core/' changes from 7967731..b9e0ea0
[tmk_keyboard.git] / tool / mbed / mbed-sdk / libraries / tests / mbed / freopen / TextLCD.h
1 /* mbed TextLCD Library Base Class
2 * Copyright (c) 2007-2009 sford
3 * Released under the MIT License: http://mbed.org/license/mit
4 */
5 #include "TextDisplay.h"
6
7 #ifndef MBED_TEXTLCD_H
8 #define MBED_TEXTLCD_H
9
10 class TextLCD : public TextDisplay {
11 public:
12
13 TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, const char *name = NULL);
14 virtual void character(int column, int row, int c);
15 virtual int rows();
16 virtual int columns();
17
18 // locate, cls, putc, printf come from derived class
19
20 protected:
21
22 void writeByte(int value);
23 void writeCommand(int command);
24 void writeData(int data);
25
26 DigitalOut _rw, _rs, _e;
27 BusOut _d;
28 };
29
30 #endif
Imprint / Impressum