Fork of LCD-Window which works with Enhanced TextLCD from Wim
Fork of LcdWindow by
Diff: ks0108_8bit.h
- Revision:
- 1:65f72ed914fa
- Parent:
- 0:ae5037e3d6e0
- Child:
- 2:5ac5bab7daaf
--- a/ks0108_8bit.h Mon Nov 15 22:37:30 2010 +0000 +++ b/ks0108_8bit.h Tue Nov 16 20:49:18 2010 +0000 @@ -48,20 +48,20 @@ * @param leftCS the pin name for the left display half (1=active) * @param rightCS the pin name for the right display half (1=active, use NC for smaller displays) */ - KS0108LCD8bit(unsigned int width, unsigned int height, BusOut *data, PinName enable, PinName rs, PinName leftCS, PinName rightCS); + KS0108LCD8bit(const unsigned int width, const unsigned int height, BusOut *data, const PinName enable, const PinName rs, const PinName leftCS, const PinName rightCS); virtual void init(); - virtual void writeText(unsigned int line, unsigned int pos, char text[]); + virtual void writeText(const unsigned int line, const unsigned int pos, const char text[]); virtual void clear(); protected: void clearHalf(DigitalOut *cs); - void sendCmd(unsigned char byte, DigitalOut *cs); - void sendData(unsigned char byte, DigitalOut *cs); + void sendCmd(const unsigned char byte, DigitalOut *cs); + void sendData(const unsigned char byte, DigitalOut *cs); - void sendByte(unsigned char byte, DigitalOut *cs); + void sendByte(const unsigned char byte, DigitalOut *cs); - void setChar(unsigned int line, unsigned int pos, char c); + void setChar(const unsigned int line, const unsigned int pos, const char c); BusOut* _data; DigitalOut *_enable, *_rs, *_left, *_right;