View previous topic :: View next topic |
Author |
Message |
theasus
Joined: 31 May 2009 Posts: 79
|
A Graphic LCD question |
Posted: Wed Mar 24, 2010 2:46 pm |
|
|
For example I have some data like this;
data[0]=7
data[1]=10
data[2]=12
And I want to show this data on graphic lcd how can i do this?
I have used these codes but it didn't work.
Code: |
data[0]=7;
glcd_text57(0, 15, data[0], 1, ON);
|
And then I have tried these codes;
Code: |
data[0]=7;
i=0;
glcd_text57(0, 15, data[i], 1, ON);
|
But It didn't work again.Could you help me?(Compiler version is 4.068)
Also I'm using these libraries for graphical lcd and I have no other problem with graphical LCD;
#include <HDM64GS12.c>
#include <graphics.c> |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Mar 24, 2010 2:55 pm |
|
|
Post what you want to see on the GLCD.
You have this data:
Quote: |
data[0]=7
data[1]=10
data[2]=12
|
Do you want to see this?
Or something else ? Post what you want to see. |
|
|
dezso
Joined: 04 Mar 2010 Posts: 102
|
|
Posted: Wed Mar 24, 2010 8:10 pm |
|
|
Code: |
char data_str[3];
sprintf(data_str, "%u", data[i]);
glcd_text57(0, 15, data_str, 1, ON);
|
try this |
|
|
|