Problem with I2C LCD 2x16

User avatar
Pyshco
Posts: 28
Joined: Wed Jul 19, 2017 2:36 pm

Problem with I2C LCD 2x16

Postby Pyshco » Sat Apr 07, 2018 12:20 am

When i was tring to use this LCD with a I2C i get this output (sorry for the output been in spanish):

Code: Select all

Arduino:1.8.5 (Windows 10), Tarjeta:"ESP32 Dev Module, 80MHz, 115200, None"

ATENCIÓN: la librería LiquidCrystal_I2C pretende ejecutarse sobre arquitectura(s) (avr) y puede ser incompatible con tu actual tarjeta la cual corre sobre arquitectura(s) (esp32).
Archiving built core (caching) in: C:\Users\ivann\AppData\Local\Temp\arduino_cache_221535\core\core_espressif_esp32_esp32_FlashFreq_80,UploadSpeed_115200,DebugLevel_none_036d094178c15d2544f64c911288978f.a
El Sketch usa 110074 bytes (8%) del espacio de almacenamiento de programa. El máximo es 1310720 bytes.
Las variables Globales usan 9892 bytes (3%) de la memoria dinámica, dejando 285020 bytes para las variables locales. El máximo es 294912 bytes.
esptool.py v2.0-beta3
Connecting....
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash params set to 0x022f
Compressed 11120 bytes to 7191...

A fatal error occurred: Timed out waiting for packet content
A fatal error occurred: Timed out waiting for packet content

Este reporte podría tener más información con
"Mostrar salida detallada durante la compilación"
opción habilitada en Archivo -> Preferencias.
It is the LiquidCrystal_I2C library who is having the problem... any way to solve this or another library?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Problem with I2C LCD 2x16

Postby WiFive » Sat Apr 07, 2018 1:26 am

What pins you use for i2c?

User avatar
Pyshco
Posts: 28
Joined: Wed Jul 19, 2017 2:36 pm

Re: Problem with I2C LCD 2x16

Postby Pyshco » Sat Apr 07, 2018 3:34 am

Thanks for the quick reply!

The pins i'm using are: For the SDA(io12) and for the SCL(io14).

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Problem with I2C LCD 2x16

Postby WiFive » Sat Apr 07, 2018 5:09 am

Gpio12 is a strapping pin you can't pull it high on boot with wroom32 3.3v flash

User avatar
Pyshco
Posts: 28
Joined: Wed Jul 19, 2017 2:36 pm

Re: Problem with I2C LCD 2x16

Postby Pyshco » Sat Apr 07, 2018 2:33 pm

Thanks for the help, now it compliles... now, i've got another issue. You see, now it compiles but doesn't show anything in the screen, i tryied ajusting the contrast but nothing... how can i fix this?

This is the code that i'm using:

Code: Select all

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);//set the LCD address to 0x27 for a 16 chars and 2 line display

void setup(){ 
  lcd.begin(26, 27);// initialize the lcd with SDA and SCL pins
  // Print a message to the LCD.
  lcd.backlight();
  lcd.setCursor(0,0);
  lcd.print("Something");
  lcd.setCursor(0,1);
  lcd.print("Test?");
}
void loop(){
}

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Problem with I2C LCD 2x16

Postby WiFive » Sat Apr 07, 2018 2:46 pm


Who is online

Users browsing this forum: No registered users and 39 guests