Graphic serial backpack and 128x160 lcd

Your source for all things Atmel.

Moderator: phalanx

Post Reply
dimkasta
Posts: 14
Joined: Mon Aug 24, 2009 1:21 pm

Graphic serial backpack and 128x160 lcd

Post by dimkasta » Fri Sep 04, 2009 1:03 am

I m really having trouble understanding how this works...

The backpack keeps scrolling the cursor erasing everything.
Even when I manage to get something written on the serial, it appears a bit gibberish most of the times, and after a while it get erased by the scrolling cursor.

Could you guys please give me a hello world thingy in arduino language on how to reset it or something and start giving it simple text and commands?

Thanks in advance.

whoismaha
Posts: 23
Joined: Mon Aug 31, 2009 7:43 am

Post by whoismaha » Tue Nov 10, 2009 1:03 pm

I recently bought two Serial Graphic LCD 128x64 modules and had a little trouble.

The set X and set Y commands are wrong on the datasheet. You have to use 0x18 and 0x19 not 0x17 and 0x18. Also the Y is inverted, so the origin is actually the bottom left corner. Not sure if the bigger LCD is the same? but probably.

If you want to just see if your display is working you can try this:
void setup()
{
Serial.begin(115200);
//Change backlight value
Serial.print(0x7C,BYTE); // cmd
Serial.print(0x02,BYTE); // brightness
Serial.print(0x40,BYTE); // value between 0-100
//Run the built in demo
Serial.print(0x7C,BYTE); // cmd
Serial.print(0x04,BYTE); // demo
}
void loop() {}

Post Reply