![]() | ![]() | ![]() |
| | #106 |
|
just alter or copy the original "PutChar" function and edit it to the new font and change the size for the font.
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #107 |
|
Hy, I'm stuck, I still can not display a large print, or "float" with the function of Pommie: Code: void ftoa(float f,char* String,char Places){
long power;
char n,i;
power=1;
while(power*10<=f)
power*=10;
while(power>=1){
n=(char)(f/power);
f-=n*power;
power/=10;
*String++=n+'0';
}
*String++='.';
for(i=0;i<Places;i++){
f*=10;
n=(char)f;
f-=n;
*String++=n+'0';
}
*String=0;
}
And my second problem, I tried to understand how the display using the putchar function to create my display large font (I need to display from 0 to 9 and the dot ".". Could you help me, because I'm stuck for a few days, and your support since the beginning helped me a lot, and I hope that this will continue.. Thank You | |
| |
| | #108 |
|
Hi, I encounter a problem: I can not write where I want on the axis "y", I still lag 8.i only write on the lines 0, 8, 16, ... even if I do: Code: SetPos(50,7);
PutChar('R');
Is it possible to solve this problem? Thank you in advance | |
| |
| | #109 |
|
Hi, I have a little problem (yes another!), concerning to display a float .. this is what I do: Code: # include <ftoa.h> ... float voltage; DataToLcd char [30]; ... voltage = 30.2359; ftoa (voltage, DataToLcd, 2); DataToLcd [0] ='3 ' DataToLcd [1] ='0 ' DataToLcd [2] = ''. DataToLcd [3] ='2 ' DataToLcd [4] ='3 ' DataToLcd [5] = ''. ... DataToLcd [29] = ''. but then how to display it: I do fine: Putchar (DataToLcd); PutMessage (DataToLcd); it does not work! you have an idea? Thank you in advance | |
| |
| | #110 |
|
Something like, Code: i=0;
while(DataToLcd[i]!=0)
PutChar(DataToLcd[i++]);
| |
| |
| | #111 |
|
Pommie thank you ... it works very well ... Will you have an idea on my previous post on the writing area on the screen. By the coordinate "y" must always be a multiple of 8? can we change this? Thank you again | |
| |
| | #112 |
|
It is possible to write characters to any position on the screen. The way to do it is to load each vertical byte of the character into a 16 bit variable and scroll it the required number if pixel (0-6). You then inclusive or this with the screen to draw the character. Mike. | |
| |
| | #113 |
|
Hi Pommie, can you tell me what level of the library I need to change something in order to write where I want? I can not.. Thank you in advance | |
| |
| | #114 |
|
Hi, I looked again the principle of transmission, and features in the documentation of my display, and I think the solution lies in this function and in the last line: Code: void WritePosition(void){
if(XPos>63){
b_GLCD_GCS1=1;
b_GLCD_GCS2=0;
}
else{
b_GLCD_GCS1=0;
b_GLCD_GCS2=1;
}
GLCD_Write_Cmd(0x40+(XPos&0x3f)); //column=0
GLCD_Write_Cmd(0xb8+((YPos&0x3f)>>3)); //row=0 //row=0
}
Can you help me please Thanks a lot | |
| |
| | #115 |
|
The routine that needs rewriting is the PutChar routine. Unfortunately, the changes required are extensive and I don't have the time to help. You could write a slower version that looked at each byte of the char and used the plot routine to draw it. Mike. | |
| |
| | #116 |
|
Hi, Pommie, have you received my MP? can you answer my message MP, even if the answer is no? Thank you in advance. PS: attached documentation of my display, as on page 12, I looked at the controls and I find it odd that in the WritePosition, when we want to set the value of Y using the direction of X and vice versa. Thank you again | |
| |
| | #117 |
|
Hi, For display on all "y" axes, I dropped (I failed ...), I do otherwise. For against, I'm still stuck on the display of a larger police, are what you could help me please. Thank you in advance | |
| |
| | #118 |
|
Is their any problem regarding downloading attachements? coz i am not able to download. Please help.
| |
| |
| | #120 |
|
Thanks Pommie.
| |
| |
|
| Tags |
| demo, glcd, unicorn |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Unicorn Oscilloscope running GLCD 128x64 & Photo | blueroomelectronics | Micro Controllers | 8 | 18th June 2007 03:06 PM |
| Help understanding the Unicorn | Kyle-s4h | Micro Controllers | 2 | 5th June 2007 07:09 PM |
| Open MultiSim DEMO Files | mayo | General Electronics Chat | 1 | 3rd May 2007 04:52 PM |
| mcuStudio an Eclipse based IDE for PIC: flash demo available | octal | Micro Controllers | 0 | 23rd August 2006 06:44 AM |
| Honeywell HMR3000 DEMO KIT | shermaine | General Electronics Chat | 5 | 26th May 2005 09:35 AM |