Simon Ford / Mbed 2 deprecated displays

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TextLCD.h Source File

TextLCD.h

00001 /* mbed TextDisplay Display Library Base Class
00002  * Copyright (c) 2007-2009 sford
00003  * Released under the MIT License: http://mbed.org/license/mit
00004  */
00005 
00006 #include "TextDisplay.h"
00007 
00008 #ifndef MBED_TEXTLCD_H
00009 #define MBED_TEXTLCD_H
00010 
00011 class TextLCD : public TextDisplay {
00012 public:
00013 
00014     TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3);
00015     virtual void character(int column, int row, int c);
00016     virtual int rows(); 
00017     virtual int columns();  
00018 
00019 protected:
00020 
00021     void writeByte(int value);
00022     void writeCommand(int command);
00023     void writeData(int data);
00024 
00025     DigitalOut _rw, _rs, _e;
00026     BusOut _d;
00027 };
00028 
00029 #endif