Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

GLCD Image drawing help.

Status
Not open for further replies.

Sajjadkhan

Full Member level 5
Full Member level 5
Joined
Sep 25, 2010
Messages
307
Helped
17
Reputation
34
Reaction score
16
Trophy points
1,298
Location
Rawalpindi,Pakistan
www.facebook.com
Activity points
4,199
Compiler: MikroC 6
Controller: PIC18f452
LCD: T6963C 240x128

I want monitor Water level. So a tank goes to my lcd and problem is how to fill it.

Look in the figure, there are two tanks.right one is easy, i just have to draw straight lines in for loop. but left one is more realistic but how can i fill it that way. one way is to plot curvy lines dot by dot.

Any suggestions?

 

Draw two lines and a circle on the top and bottom. Now make a glcd image data array for a black half curved line. depending upon the adc value go on drawing (stacking) the black curved line. Every time you wrire a curved black line then redraw a circle (same as top circle) on top of it.
 

I thought that but i think there is problem.the command for that is sprite which draws the image in a specific rectangular area. that rectangular area if stacked on the curve of the circle then it would remove most of the previous circle because of its background.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top