View previous topic :: View next topic |
Author |
Message |
E_KARVELAs
Joined: 14 Feb 2007 Posts: 46 Location: Greece & Cyprus
|
I want to insert the degree symbol into the GLCD 128X64 |
Posted: Fri Feb 29, 2008 6:03 pm |
|
|
HI i want to show the degree symbol into to the GLCD how can this be done:???
Code: |
//example code
char string[9];
float TempVal; //store the value of temp
sprintf(string,"%3.1foC",TempVal) //This code will show 24.4oC
//I need to show "24.4°C"
//instead of "24.4oC"
|
Thanks _________________ ---- GREECE ---- |
|
|
JulsPower
Joined: 18 Feb 2008 Posts: 11
|
|
Posted: Fri Feb 29, 2008 8:54 pm |
|
|
draw it
I dont know with the glcd but with the hd44780 you can write into the CG ram
check the manual you can probably do the same |
|
|
andredurao
Joined: 24 Apr 2006 Posts: 15
|
|
Posted: Sat Mar 01, 2008 5:56 am |
|
|
You'll have to draw it..
increase one line in const BYTE TEXT2
with the followin values....
0b00000000,
0b00011100,
0b00100010,
0b00100010,
0b00011100
and print this char (#127, or you may change some symbol
that you're not using (like '^' ...just a example) |
|
|
E_KARVELAs
Joined: 14 Feb 2007 Posts: 46 Location: Greece & Cyprus
|
|
Posted: Sat Mar 01, 2008 8:22 am |
|
|
andredurao wrote: | You'll have to draw it..
increase one line in const BYTE TEXT2
with the followin values....
0b00000000,
0b00011100,
0b00100010,
0b00100010,
0b00011100
and print this char (#127, or you may change some symbol
that you're not using (like '^' ...just a example) |
hi
i changed the driver code for "^" to show the degree symbol works just file. thanks _________________ ---- GREECE ---- |
|
|
|