??? 10/29/04 02:04 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#79972 - RE: How to draw line at any angle on GLC Responding to: ???'s previous message |
Drawing angular lines with a KS0108 LCD driver..hmm. Can be done but some circus involved.
Actually for this you need to be very clear of two things: > Basic equations to generate lines and curves > The way the display driver handles the pixel data. I have worked on this LCD driver and have posted some code and explanation at : http://www.8052.com/users/RRAGHU/GLCD.phtml But the samples I have given there have already been done by you. Understanding the following is important : Each driver KS0108B controls a 64 column by 64 row pixel array. The 64 pixel row arrays are further gouped into 8 pages - and each page is 8 bits or 1 Byte tall. Thus when you write a Byte, based on the Page address and Column address, this "8 bit tall" area is filled up . The LSB bit of the data byte is at the top and the MSB bit is at the bottom. The data sheet is not very clear in explaining the above. Or maybe I have a problem understanding what they say. I would say that one easy way to generate code for curves is to first get a BMP image of the page and then plug into one of the programs that can convert the image into hex data suitable for KS0108 driver. One such link is : http://perso.wanadoo.fr/rs-rey/el...hicLCD.htm While in that page look for the link to FastLCD by Bojan. That is a good program to do the conversion from BMP images. Raghu |
Topic | Author | Date |
How to draw line at any angle on GLCD | 01/01/70 00:00 | |
RE: How to draw line at any angle on GLCD | 01/01/70 00:00 | |
RE: How to draw line at any angle on GLCD | 01/01/70 00:00 | |
RE: How to draw line at any angle on GLC | 01/01/70 00:00 | |
RE: How to draw line at any angle on GLC | 01/01/70 00:00 | |
Look for Breshenham and Wu | 01/01/70 00:00 | |
RE: Look for Breshenham and Wu | 01/01/70 00:00 | |
How to implement it with c51 | 01/01/70 00:00 | |
RE: How to implement it with c51 | 01/01/70 00:00 | |
RE: How to implement it with c51 | 01/01/70 00:00 | |
Correction, sort of | 01/01/70 00:00 | |
No | 01/01/70 00:00 | |
Resolution issues... | 01/01/70 00:00 | |
RE: How to draw line at any angle on GLC![]() | 01/01/70 00:00 |