Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 30th March 2009, 11:47 PM   #106
Default

just alter or copy the original "PutChar" function and edit it to the new font and change the size for the font.
AtomSoft is offline  
Old 1st April 2009, 10:06 AM   #107
Default

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;
}
How to use this function to convert a float into a string and display it with the GLCD library?


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
jorg1n is offline  
Old 8th April 2009, 04:25 PM   #108
Default

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');
he writes to the line 0.

Is it possible to solve this problem?
Thank you in advance
jorg1n is offline  
Old 9th April 2009, 09:17 AM   #109
Default

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);
and after that, I have my "char" DataToLcd which is "30.23" is:
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
jorg1n is offline  
Old 9th April 2009, 10:48 AM   #110
Default

Something like,
Code:
    i=0;
    while(DataToLcd[i]!=0)
        PutChar(DataToLcd[i++]);
Mike.
Pommie is online now  
Old 9th April 2009, 03:42 PM   #111
Default

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
jorg1n is offline  
Old 10th April 2009, 03:54 AM   #112
Default

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.
Pommie is online now  
Old 20th April 2009, 07:35 AM   #113
Default

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
jorg1n is offline  
Old 20th April 2009, 03:20 PM   #114
Default

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	
}
But I can not change it correctly to write to all the lines ...

Can you help me please
Thanks a lot
jorg1n is offline  
Old 20th April 2009, 03:49 PM   #115
Default

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.
Pommie is online now  
Old 21st April 2009, 09:19 AM   #116
Default

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
Attached Files
File Type: pdf WG12864C-TFH-V#N.pdf (403.7 KB, 23 views)
jorg1n is offline  
Old 23rd April 2009, 07:05 AM   #117
Default

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
jorg1n is offline  
Old 12th September 2009, 10:24 AM   #118
Default

Is their any problem regarding downloading attachements? coz i am not able to download. Please help.
powdermonkey is offline  
Old 12th September 2009, 10:38 AM   #119
Default

Try this link.

Mike.
Pommie is online now  
Old 5th October 2009, 05:54 PM   #120
Default

Thanks Pommie.
powdermonkey is offline  
Reply

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



All times are GMT. The time now is 01:53 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker