ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TextLCD.h Source File

TextLCD.h

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