GroupZ - 05012018 1511

Committer:
mslade
Date:
Tue Jan 09 15:08:58 2018 +0000
Revision:
3:da9b27c64089
Parent:
1:84581acd1333
full version;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mslade 1:84581acd1333 1 #ifndef MBED_LCDCLASS_H
mslade 1:84581acd1333 2 #define MBED_LCDCLASS_H
mslade 1:84581acd1333 3
mslade 1:84581acd1333 4 #include "mbed.h"
mslade 1:84581acd1333 5
mslade 1:84581acd1333 6 class lcdClass : public Stream {
mslade 1:84581acd1333 7 public:
mslade 1:84581acd1333 8 lcdClass(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7);
mslade 1:84581acd1333 9
mslade 1:84581acd1333 10 #if DOXYGEN_ONLY
mslade 1:84581acd1333 11 int putc(int c);
mslade 1:84581acd1333 12 int printf(const char* format, ...);
mslade 1:84581acd1333 13 #endif
mslade 1:84581acd1333 14 void locate(int column, int row);
mslade 1:84581acd1333 15 void cls();
mslade 1:84581acd1333 16 protected:
mslade 1:84581acd1333 17 virtual int _putc(int value);
mslade 1:84581acd1333 18 virtual int _getc();
mslade 1:84581acd1333 19
mslade 1:84581acd1333 20 void character(int column, int row, int c);
mslade 1:84581acd1333 21 void writeByte(int value);
mslade 1:84581acd1333 22 void writeCommand(int command);
mslade 1:84581acd1333 23 void writeData(int data);
mslade 1:84581acd1333 24
mslade 1:84581acd1333 25 DigitalOut _rs, _e;
mslade 1:84581acd1333 26 BusOut _d;
mslade 1:84581acd1333 27
mslade 1:84581acd1333 28 int _column;
mslade 1:84581acd1333 29 int _row;
mslade 1:84581acd1333 30 };
mslade 1:84581acd1333 31
mslade 1:84581acd1333 32 #endif