Page 1 of 1

Horizontal AND Vertical Graphs on same screen

Posted: Fri Jan 16, 2004 12:20 am
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!

Posted: Fri Jan 16, 2004 12:47 pm
by Amorya
I don't think you can have horizontal and vertical graphs at the same time.

Posted: Thu Feb 12, 2004 11:15 am
by Miles
Unfortunately you will not be able to run horizontal and vertical graphs at the same time... :(