Go Down

Topic: LCD displaying black boxes (Read 265 times) previous topic - next topic

Danieo

Hi!
I'm trying to display some text on my LCD, but when i run my program on the LCD appears only black boxes.
I'm using DEM 16216 SYH-LY Display(here's the documentation: http://www.tme.eu/pl/Document/75d81a775dc1633337975c25138f1e0b/dem16216syh-ly.pdf) with Arduino Leonardo(i tried also on Yun).

The code:
Code: [Select]
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup()
{
  lcd.begin(16, 2);
  lcd.print("Hello");

}

void loop() {}


and the second code:
Code: [Select]
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup()
{
  lcd.begin(16, 2);
  lcd.setCursor(0, 0);
  lcd.print("Hello");

}

void loop() {}


Paul__B

Show us (all) your connections.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy