summaryrefslogtreecommitdiff
path: root/tmk_core/tool/mbed/mbed-sdk/libraries/tests/mbed/freopen/TextLCD.h
blob: 9a29792183c6f3fa59590f8ca6cde625467f87e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* mbed TextLCD Library Base Class
 * Copyright (c) 2007-2009 sford
 * Released under the MIT License: http://mbed.org/license/mit
 */
#include "TextDisplay.h"

#ifndef MBED_TEXTLCD_H
#define MBED_TEXTLCD_H

class TextLCD : public TextDisplay {
public:

    TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, const char *name = NULL);
    virtual void character(int column, int row, int c);
    virtual int rows();
    virtual int columns();

    // locate, cls, putc, printf come from derived class

protected:

    void writeByte(int value);
    void writeCommand(int command);
    void writeData(int data);

    DigitalOut _rw, _rs, _e;
    BusOut _d;
};

#endif