View previous topic :: View next topic |
Author |
Message |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Nov 20, 2007 1:19 pm |
|
|
Yes, there is a bug. CCS made a mistake when they changed the
driver to work with compiler versions starting with vs. 4.021:
Quote: |
4.021 The & unary operator by default no longer returns a generic (int8 *)
|
The change that they made is incorrect.
Here is the correct way to do it. Substitute this code and it should
fix the problem:
Code: | void setCursorAddress(int16 addr)
{
glcd_sendCMD(GLCD_CMD_SET_CSR_ADDR);
TGLCD_DATA
glcd_sendByte(*(int8*)&addr);
glcd_sendByte(*((int8*)&addr+1));
} |
|
|
|
The Puma
Joined: 23 Apr 2004 Posts: 227 Location: The Netherlands
|
|
Posted: Tue Nov 20, 2007 1:24 pm |
|
|
Ok, this work, thanks.
Then i now why this driver did not function |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Nov 20, 2007 2:03 pm |
|
|
This bug is in vs. 4.061, so I sent an email to CCS just now, to inform
them about it. Hopefully it will be fixed in the next version. |
|
|
The Puma
Joined: 23 Apr 2004 Posts: 227 Location: The Netherlands
|
|
Posted: Wed Nov 21, 2007 11:12 am |
|
|
Ok, the initializing and display of text function now,
but i use a routinefrom the graphics.c file then this work not good
If i use the glcd_text57 function, the text is bad
also for drawing a circle |
|
|
|