Dependencies:   mbed

Committer:
simon
Date:
Mon Nov 30 09:32:28 2009 +0000
Revision:
0:42626fc1bbc5

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
simon 0:42626fc1bbc5 1 /* mbed TextLCD Library Base Class
simon 0:42626fc1bbc5 2 * Copyright (c) 2007-2009 sford
simon 0:42626fc1bbc5 3 * Released under the MIT License: http://mbed.org/license/mit
simon 0:42626fc1bbc5 4 */
simon 0:42626fc1bbc5 5 #include "TextDisplay.h"
simon 0:42626fc1bbc5 6
simon 0:42626fc1bbc5 7 #ifndef MBED_TEXTLCD_H
simon 0:42626fc1bbc5 8 #define MBED_TEXTLCD_H
simon 0:42626fc1bbc5 9
simon 0:42626fc1bbc5 10 class TextLCD : public TextDisplay {
simon 0:42626fc1bbc5 11 public:
simon 0:42626fc1bbc5 12
simon 0:42626fc1bbc5 13 TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, const char *name = NULL);
simon 0:42626fc1bbc5 14 virtual void character(int column, int row, int c);
simon 0:42626fc1bbc5 15 virtual int rows();
simon 0:42626fc1bbc5 16 virtual int columns();
simon 0:42626fc1bbc5 17
simon 0:42626fc1bbc5 18 // locate, cls, putc, printf come from derived class
simon 0:42626fc1bbc5 19
simon 0:42626fc1bbc5 20 protected:
simon 0:42626fc1bbc5 21
simon 0:42626fc1bbc5 22 void writeByte(int value);
simon 0:42626fc1bbc5 23 void writeCommand(int command);
simon 0:42626fc1bbc5 24 void writeData(int data);
simon 0:42626fc1bbc5 25
simon 0:42626fc1bbc5 26 DigitalOut _rw, _rs, _e;
simon 0:42626fc1bbc5 27 BusOut _d;
simon 0:42626fc1bbc5 28 };
simon 0:42626fc1bbc5 29
simon 0:42626fc1bbc5 30 #endif