It is currently 20 Apr 2018 02:11

All times are UTC + 1 hour




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: 29 Mar 2013 11:22 
Offline

Joined: 05 May 2008 17:48
Posts: 9
Quote:
I could probably prepare a package for mB but you'd have to translate the driver. I don't have time to do it but I may help as time allows.


Yes, Please. I think it should possible for me to translate. :)

I need this sooooo much for my new project.

best Regards
Tom


Top
 Profile  
 
PostPosted: 29 Mar 2013 15:10 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
The driver has to be converted before packing the library. As you have installed the lib in mP, you will find the driver (uGLCD_ST7565R.mpas) in Packages/uGLCD/Uses subdirectory of mP installation directory.
I assume your COG GLCD has SPI interface as the driver is written for it. Naturally, it may be modified to use the parallel interface as well but that would mean some additional work.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 30 Mar 2013 02:26 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
Well, I found some time and converted the driver to Basic using Dany's declarations convertor to speed up the job :) . Now I'll have to find another free moment to convert few font files and pack the library. Stay tuned.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 30 Mar 2013 18:58 
Offline

Joined: 05 May 2008 17:48
Posts: 9
Hi, that makes me happy :)
I try it yesterday also with danny's converter, but... my pascal knowledge is small and about 25 years old. :lol:


Top
 Profile  
 
PostPosted: 02 Apr 2013 15:52 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
Hi Tom,

Packages for mB are ready for download :) . Unfortunately, prototypes of routines in Help stay as they were (in Pascal), but I've added a list of them converted to Basic to every driver file.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 03 Apr 2013 15:45 
Offline

Joined: 05 May 2008 17:48
Posts: 9
Hi Janni,
thank you so much. Great work. I've installed the libs and all is fine.
Next days I should get the cog diplays for testing.
best Rgards Tom


Top
 Profile  
 
PostPosted: 30 Aug 2017 04:25 
Offline

Joined: 28 Aug 2017 02:34
Posts: 22
Janni,

did you ever ported this for mC PRO?


Top
 Profile  
 
PostPosted: 30 Aug 2017 10:36 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
I've written the library for mP, and mB followed easily. For mC I had to make some changes and have only the library with short description (no help files) and driver for KS107 based displays but if you wish to try, you may find it here.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 31 Aug 2017 04:29 
Offline

Joined: 28 Aug 2017 02:34
Posts: 22
janni wrote:
I've written the library for mP, and mB followed easily. For mC I had to make some changes and have only the library with short description (no help files) and driver for KS107 based displays but if you wish to try, you may find it here.


Thanks a lot Janni, I'll give it a try. I downloaded the file but it's password protected, can you send me the password?

Thanks,
Martin


Top
 Profile  
 
PostPosted: 31 Aug 2017 12:07 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
Sorry about that. The archive was prepared at a request by e-mail and needed password to be delivered without server refusal. Password is 'janni', but I will repack the library later.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 23 Feb 2018 00:27 
Offline

Joined: 28 Aug 2017 02:34
Posts: 22
janni wrote:
I've written the library for mP, and mB followed easily. For mC I had to make some changes and have only the library with short description (no help files) and driver for KS107 based displays but if you wish to try, you may find it here.


Hi Janni,
I've started working with the library you shared with me for mC, since I have a KS107 compatible screen I started testing. I can use most of the function on the library except uGLCD_Button. The compiler throughs an error indicating that the call signature doesn't match the definition of uGLCD_Char_Width in uGLDC.c. I guess the uGLCD_Button is internally calling uGLCD_Char_Width in order to centre the text inside the button, but there might be something wrong.

Can you help?

I can use uGLCD_Char_Width with no problems.

Cheers,
Martin


Top
 Profile  
 
PostPosted: 23 Feb 2018 01:35 
Offline

Joined: 18 Feb 2006 13:17
Posts: 4892
Hi Martin,

Who would have thought that C compiler performs more type-checking than a Pascal one? :lol: Well, it's not true but mC sometimes doesn't like how mP handles function parameters of type char.

Anyway, you may download new version of mC-compatible uGLCD library (same place as before). Just replace the uGLCDlib.mcl file and you should be able to use the Button function.

_________________
Replacement libraries for mP PRO and PIC18 processors, mP PRO tips & trics


Top
 Profile  
 
PostPosted: 23 Feb 2018 01:41 
Offline

Joined: 28 Aug 2017 02:34
Posts: 22
janni wrote:
Hi Martin,

Who would have thought that C compiler performs more type-checking than a Pascal one? :lol: Well, it's not true but mC sometimes doesn't like how mP handles function parameters of type char.

Anyway, you may download new version of mC-compatible uGLCD library (same place as before). Just replace the uGLCDlib.mcl file and you should be able to use the Button function.


Cool! Thanks a lot Janni, I'll give it a try.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron