Martin Slade / GroupUproject

Fork of 352 by Elec351 MMB

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lcdClass.h Source File

lcdClass.h

00001 #ifndef MBED_LCDCLASS_H
00002 #define MBED_LCDCLASS_H
00003 
00004 #include "mbed.h"
00005 
00006 class lcdClass : public Stream {
00007 public:
00008     lcdClass(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7);
00009 
00010 #if DOXYGEN_ONLY
00011     int putc(int c);
00012     int printf(const char* format, ...);
00013 #endif
00014     void locate(int column, int row);
00015     void cls();
00016 protected:
00017     virtual int _putc(int value);
00018     virtual int _getc();
00019     
00020     void character(int column, int row, int c);
00021     void writeByte(int value);
00022     void writeCommand(int command);
00023     void writeData(int data);
00024 
00025     DigitalOut _rs, _e;
00026     BusOut _d;
00027 
00028     int _column;
00029     int _row;
00030 };
00031 
00032 #endif