LK204-25 Rev 2.0 w/Arduino Mega2560 I2C
Posted: Mon Sep 03, 2012 4:17 pm
Hello,
I'm trying to figure out how to get this thing going over I2C. I can't even clear the screen. I've tried with TTL using the Arduino Mega2560 board and it works well that way. By default the LCD is Address is 0x50 and when shifted right for 7-bits I get 0x28. Below is the code I've tried sending the LCD to clear the splash screen. I've verified the jumpers are correct. Not sure if it a timing issue or what. Any Ideas?
I'm trying to figure out how to get this thing going over I2C. I can't even clear the screen. I've tried with TTL using the Arduino Mega2560 board and it works well that way. By default the LCD is Address is 0x50 and when shifted right for 7-bits I get 0x28. Below is the code I've tried sending the LCD to clear the splash screen. I've verified the jumpers are correct. Not sure if it a timing issue or what. Any Ideas?
Code: Select all
#include <Wire.h>
#include <stdlib.h>
void setup() {
Wire.begin();
Serial.begin(9600);
}
void loop() {
Wire.beginTransmission(0x28);
// These next two bytes send the command to clear the display.
Wire.write(254);
Wire.write(88);
Wire.write("LCD Cleared");
Wire.endTransmission();
delay(500);
}