View previous topic :: View next topic |
Author |
Message |
Orcino
Joined: 07 Sep 2003 Posts: 56
|
24lc256 to LCD |
Posted: Thu Mar 17, 2005 9:55 am |
|
|
How to load an image that this in a memoria I2C for a graphical display? Somebody can help me ?
Thanks
Orcino |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Sat Mar 19, 2005 7:56 pm |
|
|
Not without a whole lot more information on your hardware. |
|
|
Orcino
Joined: 07 Sep 2003 Posts: 56
|
|
Posted: Mon Mar 21, 2005 8:57 pm |
|
|
Hello Mark, I am using a 18F452, 24LC256 and a LCD with KS0108 128X64. I need load a image in 24LC to a LCD.
Very thanks
Orcino |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Mar 21, 2005 10:20 pm |
|
|
Your first step is to take a look at the GLCD.C driver file. I believe this will work for a KS0108. Take a look at the glcd_pixel() function. This will allow you to set or clear pixels in the display. Write a small test program to set and clear some of the pixels. Once that is working, write another program to read and write to the eeprom. There should be plenty of examples to get you started. I would store each pixel as a bit in the eeprom. So you would read a byte and from that byte, set 8 pixels. You will also have to get the data into the eeprom. I would suggest using the uart to do this. Once all of this is working, take a close look at the glcd_pixel() function. It actually reads a byte from the controller, changes a bit and then writes it back. You can increase the preformance considerably by just writing the entire byte that you store in the eeprom to the display. |
|
|
|