Buenas, acabo de introducirme en el mundo de arduino y llevo haciendo algunos tutos bastante sencillitos. Mi siguiente paso es sacar por pantalla un hola mundo en una LCD de 128 x 64 (Hoja de datos del RG12864B).
No consigo imprimir por pantalla Hola mundo, este codigo es compatible para mi pantalla?
#include <LiquidCrystal.h>
// Connections:
// rs o DI to Arduino pin 12
// rw to Arduino pin 11
// enable to Arduino pin 10
// A+ to Arduino pin 13
// LCD pins d4, d5, d6, d7 to Arduino pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
int backLight = 13; // pin 13 will control the backlight
void setup()
{
pinMode(backLight, OUTPUT);
digitalWrite(backLight, HIGH); // turn backlight on. Replace 'HIGH' with 'LOW' to turn it off.
lcd.begin(128,64); // columns, rows. use 16,2 for a 16x2 LCD, etc.
lcd.clear(); // start with a blank screen
lcd.setCursor(0,6); // set cursor to column 0, row 0 (the first row)
lcd.print("Hello, World"); // change this text to whatever you like. keep it clean.
lcd.setCursor(0,1); // set cursor to column 0, row 1
lcd.print("hacktronics.com");
}
void loop()
{
}
Moderador: Enlace editado