Boa noite,
No meu visor LCD, não esta aparecendo nenhuma imagem, o que pode ser?
Estou utilizando o seguinte código.
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
lcd.print("hello, world!");
}
void loop() {
lcd.setCursor(0, 1);
lcd.print(millis()/1000);
}
Google translate:
Good evening,
On my LCD display is not showing an image, which can be?
I am using the following code.
This is typically caused by a problem with the connections between your Arduino and your display. You may have one or more bad wires, bad solder joints, or incorrect connections.
Provide a clear photograph of your setup and we may be able to help.
Don
Como ligaste o lcd?
Ligaste o backlight?
Já ajustaste o contraste do lcd?
No meu caso, esta configuração funciona:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop() {
// set the cursor to column 0, line 1
// (note: line 1 is the second row, since counting begins with 0):
lcd.setCursor(0, 1);
// print the number of seconds since reset:
lcd.print(millis()/1000);
}
Eu tenho um LCD como este e tive que alterar os pinos do objecto "LiquidCrystal".