Files at this revision

API Documentation at this revision

Comitter:
docent
Date:
Thu Jul 16 07:15:57 2020 +0000
Parent:
42:ca39baa33d4f
Commit message:
for my students

Changed in this revision

TextLCD.cpp Show annotated file Show diff for this revision Revisions of this file
TextLCD.h Show annotated file Show diff for this revision Revisions of this file
TextLCD_Config.h Show annotated file Show diff for this revision Revisions of this file
diff -r ca39baa33d4f -r eb52abed1a83 TextLCD.cpp
--- a/TextLCD.cpp	Fri Dec 07 05:27:20 2018 +0000
+++ b/TextLCD.cpp	Thu Jul 16 07:15:57 2020 +0000
@@ -3209,7 +3209,7 @@
   * @param type            Sets the panel size/addressing mode (default = LCD16x2)
   * @param ctrl            LCD controller (default = HD44780)    
   */
-TextLCD_I2C::TextLCD_I2C(I2C *i2c, char deviceAddress, LCDType type, LCDCtrl ctrl) :
+TextLCD_I2C::TextLCD_I2C(/*DevI2C*/I2C *i2c, char deviceAddress, LCDType type, LCDCtrl ctrl) :
                          TextLCD_Base(type, ctrl), 
                          _i2c(i2c){
                               
diff -r ca39baa33d4f -r eb52abed1a83 TextLCD.h
--- a/TextLCD.h	Fri Dec 07 05:27:20 2018 +0000
+++ b/TextLCD.h	Thu Jul 16 07:15:57 2020 +0000
@@ -50,6 +50,7 @@
 #include "mbed.h"
 #include "TextLCD_Config.h"
 #include "TextLCD_UDC.h"
+//#include "DevI2C.h" //my
 
 /** A TextLCD interface for driving 4-bit HD44780-based LCDs
  *
@@ -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 *i2c, char deviceAddress = PCF8574_SA0, LCDType type = LCD16x2, LCDCtrl ctrl = HD44780); //my
 
 private:
     
@@ -815,7 +816,7 @@
     void _writeRegister (int reg, int value);     
   
 //I2C bus
-    I2C *_i2c;
+    /*DevI2C*/I2C *_i2c;
     char _slaveAddress;
     
 // Internal bus shadow value for serial bus only
diff -r ca39baa33d4f -r eb52abed1a83 TextLCD_Config.h
--- a/TextLCD_Config.h	Fri Dec 07 05:27:20 2018 +0000
+++ b/TextLCD_Config.h	Thu Jul 16 07:15:57 2020 +0000
@@ -34,14 +34,14 @@
 
 //Select hardware interface options to reduce memory footprint (multiple options allowed)
 #define LCD_I2C        1           /* I2C Expander PCF8574/MCP23008 */
-#define LCD_SPI        1           /* SPI Expander SN74595          */
-#define LCD_I2C_N      1           /* Native I2C bus     */
-#define LCD_SPI_N      1           /* Native SPI bus     */
-#define LCD_SPI_N_3_8  1           /* Native SPI bus     */
-#define LCD_SPI_N_3_9  1           /* Native SPI bus     */
-#define LCD_SPI_N_3_10 1           /* Native SPI bus     */
-#define LCD_SPI_N_3_16 1           /* Native SPI bus     */
-#define LCD_SPI_N_3_24 1           /* Native SPI bus     */
+#define LCD_SPI        0           /* SPI Expander SN74595          */
+#define LCD_I2C_N      0           /* Native I2C bus     */
+#define LCD_SPI_N      0           /* Native SPI bus     */
+#define LCD_SPI_N_3_8  0           /* Native SPI bus     */
+#define LCD_SPI_N_3_9  0           /* Native SPI bus     */
+#define LCD_SPI_N_3_10 0           /* Native SPI bus     */
+#define LCD_SPI_N_3_16 0           /* Native SPI bus     */
+#define LCD_SPI_N_3_24 0           /* Native SPI bus     */
 
 //Select options to reduce memory footprint (multiple options allowed)
 #define LCD_UDC        1           /* Enable predefined UDC example*/