CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

S1D13305 driver will not work
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 20, 2007 1:19 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Nov 20, 2007 1:24 pm     Reply with quote

Ok, this work, thanks.

Then i now why this driver did not function
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 20, 2007 2:03 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Nov 21, 2007 11:12 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group