LCD I2C
Dependents: proyectoRTOS proyectoRTOS2 proyectoRTOS proyectoRTOSp ... more
Diff: TextLCD.h
- Revision:
- 14:0c32b66b14b8
- Parent:
- 13:24506ba22480
- Child:
- 15:b70ebfffb258
diff -r 24506ba22480 -r 0c32b66b14b8 TextLCD.h --- a/TextLCD.h Sat Feb 09 15:10:36 2013 +0000 +++ b/TextLCD.h Sun Feb 10 18:43:51 2013 +0000 @@ -166,7 +166,7 @@ * @param cs chip select pin (active low) * @param type Sets the panel size/addressing mode (default = LCD16x2) */ -// TextLCD(SPI *spi, PinName cs, LCDType type = LCD16x2); + TextLCD(SPI *spi, PinName cs, LCDType type = LCD16x2); #if DOXYGEN_ONLY @@ -239,11 +239,11 @@ void setUDC(unsigned char c, char *udc_data); protected: - /** LCD Bus control */ + /* LCD Bus control */ enum _LCDBus { - _PinBus, /**< Regular mbed pins */ - _I2CBus, /**< I2C PCF8574 Portexpander */ - _SPIBus /**< SPI 74595 */ + _PinBus, /*< Regular mbed pins */ + _I2CBus, /*< I2C PCF8574 Portexpander */ + _SPIBus /*< SPI 74595 */ }; // Stream implementation functions @@ -258,7 +258,8 @@ void _setEnable(bool value); void _setRS(bool value); void _setData(int value); - + void _setCS(bool value); + //Low level writes to LCD serial bus only void _writeBus(); @@ -276,8 +277,8 @@ unsigned char _slaveAddress; // SPI bus -// SPI *_spi; -// DigitalOut _cs; + SPI *_spi; + DigitalOut _cs; //Bus Interface type _LCDBus _busType;