Display text on LCD displays (even on multiple ones). Allow to create windows (frames) on display, and to combine them (split, add, duplicate, scroll). See http://mbed.org/users/hlipka/notebook/lcdwindow/ for more information.
Diff: lcd_spi.cpp
- Revision:
- 1:65f72ed914fa
- Parent:
- 0:ae5037e3d6e0
- Child:
- 2:5ac5bab7daaf
--- a/lcd_spi.cpp Mon Nov 15 22:37:30 2010 +0000 +++ b/lcd_spi.cpp Tue Nov 16 20:49:18 2010 +0000 @@ -40,7 +40,7 @@ _spi->frequency(100000); } -void SPILCDBase::sendByte(unsigned char byte) +void SPILCDBase::sendByte(const unsigned char byte) { _enable->write(0); // enable transfer wait_us(1); @@ -49,7 +49,7 @@ _enable->write(1); } -void SPILCDBase::sendCmd(unsigned char cmd) +void SPILCDBase::sendCmd(const unsigned char cmd) { _rs->write(0); wait_us(1); @@ -58,7 +58,7 @@ _rs->write(1); } -void SPILCDBase::sendData(unsigned char cmd) +void SPILCDBase::sendData(const unsigned char cmd) { _rs->write(1); wait_us(1);