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:
12:6bf9d9957d31
Parent:
11:9ec02df863a1
Child:
13:24506ba22480
diff -r 9ec02df863a1 -r 6bf9d9957d31 TextLCD.cpp
--- a/TextLCD.cpp	Tue Feb 05 21:03:43 2013 +0000
+++ b/TextLCD.cpp	Tue Feb 05 21:50:43 2013 +0000
@@ -1,6 +1,6 @@
 /* mbed TextLCD Library, for a 4-bit LCD based on HD44780
  * Copyright (c) 2007-2010, sford, http://mbed.org
- *               2013, WH, Updated LCD types and fixed lcd address issues
+ *               2013, WH, Added LCD types, fixed LCD address issues, added Cursor and UDCs
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
@@ -319,7 +319,8 @@
         case LCD20x4:
         case LCD24x4:        
             return 4;
-      
+
+// Should never get here.      
         default:
             return 0;        
     }
@@ -349,6 +350,7 @@
                            _cursor = show;
                            break;
 
+// Should never get here.
       default : 
                            break;