Horizontal AND Vertical Graphs on same screen
Posted: Fri Jan 16, 2004 12:20 am
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:
LCDwrite writes to m_hCom, buffer of length whatever.
Any ideas?
Thanks!
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);
Any ideas?
Thanks!