Horizontal AND Vertical Graphs on same screen

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

Moderators: Henry, Mods

Post Reply
nickc1998
LCD?
Posts: 2
Joined: Wed Jan 14, 2004 6:38 pm

Horizontal AND Vertical Graphs on same screen

Post by nickc1998 »

I am trying to have 1 horizontal and 1 vertical graph displayed at the same time on my LCD2041. Problem is, after I initialize the horizontal, draw the graph, then initialize the vertical, the horizontal graph seems to mess up.

Here is the code:

Code: Select all

// Init horz
	buffer[0] = 254;
	buffer[1] = 104;
	LCDwrite(m_hCom,buffer,2);

// Draw horiz graph
	buffer[0] = 254;
	buffer[1] = 124;
	buffer[2] = 001;
	buffer[3] = 004;
	buffer[4] = 000;
	buffer[5] = 50
	LCDwrite(m_hCom,buffer,6);

// Initialize skinny vert
	buffer[0] = 254;
	buffer[1] = 115;
	LCDwrite(m_hCom,buffer,2);
// Draw vert graph
	buffer[0] = 254;
	buffer[1] = 61;
	buffer[2] = 20;
	buffer[3] = 25;
	LCDwrite(m_hCom,buffer,4); 
LCDwrite writes to m_hCom, buffer of length whatever.

Any ideas?

Thanks!

Amorya
LCD!
Posts: 15
Joined: Sun Dec 07, 2003 7:59 am

Post by Amorya »

I don't think you can have horizontal and vertical graphs at the same time.

Miles
Matrix Orbital
Matrix Orbital
Posts: 1105
Joined: Mon Mar 04, 2002 4:00 pm

Post by Miles »

Unfortunately you will not be able to run horizontal and vertical graphs at the same time... :(
Miles Y.
Head of Technical Support
Product Manager
Matrix Orbital

Post Reply