KS0108 LCD LIB with I2C I/O expander PCF8574 for Databus
Diff: KS0108.h
- Revision:
- 4:eeaa5069be9c
- Parent:
- 3:5a3db2efe771
--- a/KS0108.h Wed Sep 05 07:21:47 2012 +0000 +++ b/KS0108.h Mon Sep 10 16:33:35 2012 +0000 @@ -3,7 +3,7 @@ #define VERSION 2.0 -#include <mbed.h> +#include "mbed.h" #include "SystemFont5x7.h" #include "PCF8574_DataBus.h" #include "menbedDisplay.h" @@ -84,7 +84,7 @@ -class KS0108 { +class KS0108 : public MenbedDisplay { public: /** @@ -94,8 +94,6 @@ *@return none */ - // KS0108 (PinName _RST,PinName _DI, PinName _RW, PinName _E, PinName _CS1, PinName _CS2, PinName DB0, PinName DB1, PinName DB2, PinName DB3, PinName DB4, PinName DB5, PinName DB6, PinName DB7); -//KS0108 (PinName _DI, PinName _RW, PinName _E, PinName _CS2, PinName _CS1,PCF8574 _DB);// KS0108 (PinName _RST,PinName _DI, PinName _RW, PinName _E, PinName _CS2, PinName _CS1,PCF8574_DataBus &_DB); /** *@brief Write instruction to the specific controller. @@ -525,8 +523,11 @@ *@param *@return 1 */ - bool writeLine (const char *line, uint8_t row); - + virtual bool writeLine (const char *line, uint8_t row); + virtual void showUpArrow (bool show); + virtual void showDownArrow (bool show); + virtual uint8_t getLines (void); + virtual uint8_t getLineLength (void); private: //BusInOut DB;