12864A

hello

1 have a 12864A GLCD, i, using the latest IDE, and latest library from her:

http://playground.arduino.cc/uploads/Code/LCD12864.zip

but i cant make it work, im sure pin configuration is correcet as i used the same configuration at the library, and i manged to control contrast.

but the example want combile, i tryed a lot but always alot of errors, should (LCDA.Initialise();) command be in the setup() function, and this is enough to intialise the library? please help.

Lets try to draw a Circle, and a the number 012 on screen

First, we Initialise the LCD

LCDA.Initialise();

Let's delay a little bit

delay(500);

Now to start the rendering process (graphics on)

LCDA.Render();

Lets draw a circle

LCDA.DrawCircle(30,135,5);

The circle has been drawn to an off screen buffer, time to draw it on screen!

LCDA.RenderScreenBuffer(2); // lets draw it in the second screen

O.K. we said we need some characters in there as well. So lets enable ASCII mode and delay (we need at least 1 ms delay):

LCDA.Draw(false,4,0);

delay(1);

If we convert the characters '0', '1', and '2' we get the following 8 bit binary:

LCDA.setPins(1,0,0,0,1,1,0,0,0,0);

LCDA.setPins(1,0,0,0,1,1,0,0,0,1);

LCDA.setPins(1,0,0,0,1,1,0,0,1,0);

Now to wrap it all up, we set Draw back to true, if you don't do this the circle won't appear