Teste LCD I2C 20X4

Dependencies:   TextLCD mbed

Revision:
1:13cafaed8cff
Parent:
0:0c1de053c3b1
Child:
2:74d01fef184a
diff -r 0c1de053c3b1 -r 13cafaed8cff main.cpp
--- a/main.cpp	Wed May 02 21:54:53 2018 +0000
+++ b/main.cpp	Tue May 10 13:27:48 2022 +0000
@@ -9,7 +9,7 @@
 Serial pc(USBTX, USBRX); // tx, rx
  
 // I2C Communication
-I2C i2c_lcd(D14, D15); // SDA, SCL >>> NUCLEO: D14,D15
+I2C i2c_lcd(I2C_SDA, I2C_SCL); // SDA, SCL >>> NUCLEO: D14,D15
  
 // SPI Communication
 //SPI spi_lcd(D14, NC, D15); // MOSI, MISO, SCLK
@@ -19,7 +19,7 @@
 //TextLCD lcd(p15, p16, p17, p18, p19, p20);  // RS, E, D4-D7, LCDType=LCD16x2, BL=NC, E2=NC, LCDTCtrl=HD44780
  
 //I2C Portexpander PCF8574
-TextLCD_I2C lcd(&i2c_lcd, 0x7F, TextLCD::LCD16x2); // I2C bus, PCF8574 Slaveaddress, LCD Type Original = 0x42, Usando I2C scanner = 0x3F
+TextLCD_I2C lcd(&i2c_lcd, 0x3F, TextLCD::LCD20x4); // I2C bus, PCF8574 Slaveaddress, LCD Type Original = 0x42, Usando I2C scanner = 0x3F
 //TextLCD_I2C lcd(&i2c_lcd, 0x42, TextLCD::LCD16x2, TextLCD::WS0010); // I2C bus, PCF8574 addr, LCD Type, Ctrl Type
  
 //I2C Portexpander MCP23008
@@ -69,6 +69,7 @@
 
 // Set and show user defined characters. A maximum of 8 UDCs are supported by the HD44780.
 // They are defined by a 5x7 bitpattern. 
+/*
     lcd.setUDC(0, (char *) udc_0);  // Show |>
     lcd.putc(0);    
     lcd.setUDC(1, (char *) udc_1);  // Show <|
@@ -86,4 +87,5 @@
     lcd.setUDC(7, (char *) udc_7);
     lcd.putc(7);   
     //lcd.setBacklight(TextLCD::LightOn);
+    */
 }
\ No newline at end of file