C.Dupaty 03-2018 test on NUCLEO STM32-F411RE LCD 2x16, I2C interface Chinese model, adress I2C=0x4E (search on AliExpress for IIC/I2C 1602 Module) Important ! configure in TextLCD_Config.h : Valid only one of the lines : #define DFROBOT 0 // chinese OK #define YWROBOT 0 // chinese 0K #define SYDZ 1 // chinese OK Font is the same as http://www.farnell.com/datasheets/2362518.pdf

Fork of TextLCD by Wim Huiskamp

/* Hello World! for the TextLCD Enhanced Library C.Dupaty 03-2018 test on NUCLEO STM32-F411RE LCD 2x16, I2C interface Chinese model, adress I2C=0x4E (search on AliExpress for IIC/I2C 1602 Module) Important ! configure in TextLCD_Config.h : Valid only one of the lines :

  1. define DFROBOT 0 chinese OK
  2. define YWROBOT 0 chinese 0K
  3. define SYDZ 1 chinese OK Font is the same as http://www.farnell.com/datasheets/2362518.pdf
  • /
Revision:
14:0c32b66b14b8
Parent:
13:24506ba22480
Child:
15:b70ebfffb258
--- 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;