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
/* 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 :
- 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
- /
Diff: TextLCD.cpp
- Revision:
- 9:0893d986e717
- Parent:
- 8:03116f75b66e
- Child:
- 10:dd9b3a696acd
diff -r 03116f75b66e -r 0893d986e717 TextLCD.cpp --- a/TextLCD.cpp Tue Jan 29 20:49:33 2013 +0000 +++ b/TextLCD.cpp Thu Jan 31 19:46:00 2013 +0000 @@ -192,6 +192,7 @@ case LCD16x2: case LCD20x2: case LCD24x2: + case LCD40x2: return 0x00 + (row * 0x40) + column; // Should never get here. @@ -229,6 +230,9 @@ case LCD24x2: return 24; + + case LCD40x2: + return 40; // Should never get here. default: @@ -246,6 +250,7 @@ case LCD16x2B: case LCD20x2: case LCD24x2: + case LCD40x2: return 2; case LCD16x4: