Fast updatres to a graph

LK/ELK/VK/PK/OK/MX/GLK/EGLK/GVK/GLT Series

Moderators: Henry, Mods

Post Reply
chipmonk
LCD?
Posts: 1
Joined: Fri May 02, 2008 2:48 am
Location: New Delhi

Fast updatres to a graph

Post by chipmonk »

I am new to this forum and am planning to use the GLK240128 intelligent display. My task is to draw a point to point line graph for X(max)200 and Y(max)100. I can do that easily using the 'draw line' command.
The graph has to be updated with least flicker every one sec or so. What is the best strategy for updating it? Is the only way to undraw the old segment by the following method:
1. Change the color to background
2. Draw it again
3. Change the colour to foreground
4. Draw new segment

Or is there a better way? I am using a dSPIC33 processor and C complier.
Ray
Matrix Orbital
Matrix Orbital
Posts: 745
Joined: Thu Dec 13, 2001 4:00 pm
Location: Earth.... I think..
Contact:

Post by Ray »

If its a scrolling graph look up the stripchart feature in the manual it allows you to scroll part of the display 8 pixels left or right at a time without flicker. Then you only have to draw 8 pixels worth of new information at a time. If its not you prettymuch have the best method already.
Post Reply