Log in

View Full Version : programming an 20x4 LCD in C++ over I2C


mr_abomination
10-02-2015, 18:55
As the title suggests my team is using a 20x4 lcd screen connected to a mjkdz i2c board. the problem as it stands however is now we have no idea how to program it. there is a lot of documentation online about using this with an arduino, but nothing else really.

all we want to do is for when a button is pushed have

********************
Operation Nighthawk
is super effective
********************

display on the screen.

We think the address for the board is 0x27, but we're not entirely confident. Has anyone gotten an LCD screen working this year and if so could you share your code?

amreuland
11-02-2015, 11:30
I wrote a class for java, but you should be able to convert it to c++.
It works pretty well too.

https://github.com/robolib/robolibj/blob/master/src/io/github/robolib/module/LCD2004.java

Sorry there is no documentation on it yet. I have not gotten to that part.