for my students

Revision:
43:0462e3d255bc
Parent:
41:111ca62e8a59
--- a/TextLCD.h	Fri Dec 07 05:27:20 2018 +0000
+++ b/TextLCD.h	Fri Jul 10 08:51:43 2020 +0000
@@ -50,6 +50,7 @@
 #include "mbed.h"
 #include "TextLCD_Config.h"
 #include "TextLCD_UDC.h"
+#include "DevI2C.h" 
 
 /** A TextLCD interface for driving 4-bit HD44780-based LCDs
  *
@@ -744,7 +745,7 @@
 };
 
 //----------- End TextLCD ---------------
-
+ 
 
 //--------- Start TextLCD_I2C -----------
 #if(LCD_I2C == 1) /* I2C Expander PCF8574/MCP23008 */
@@ -761,7 +762,7 @@
      * @param type            Sets the panel size/addressing mode (default = LCD16x2)
      * @param ctrl            LCD controller (default = HD44780)                
      */
-    TextLCD_I2C(I2C *i2c, char deviceAddress = PCF8574_SA0, LCDType type = LCD16x2, LCDCtrl ctrl = HD44780);
+    TextLCD_I2C(DevI2C  *i2c, char deviceAddress = PCF8574_SA0, LCDType type = LCD16x2, LCDCtrl ctrl = HD44780); 
 
 private:
     
@@ -815,7 +816,7 @@
     void _writeRegister (int reg, int value);     
   
 //I2C bus
-    I2C *_i2c;
+    DevI2C *_i2c;
     char _slaveAddress;
     
 // Internal bus shadow value for serial bus only