Extended GLCD library for PIC18 - new version

General discussion on mikroPascal PRO for PIC.
Author
Message
uncleworf
Posts: 9
Joined: 05 May 2008 17:48

Re: Extended GLCD library for PIC18 - new version

#16 Post by uncleworf » 29 Mar 2013 11:22

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

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#17 Post by janni » 29 Mar 2013 15:10

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.

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#18 Post by janni » 30 Mar 2013 02:26

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.

uncleworf
Posts: 9
Joined: 05 May 2008 17:48

Re: Extended GLCD library for PIC18 - new version

#19 Post by uncleworf » 30 Mar 2013 18:58

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:

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#20 Post by janni » 02 Apr 2013 15:52

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.

uncleworf
Posts: 9
Joined: 05 May 2008 17:48

Re: Extended GLCD library for PIC18 - new version

#21 Post by uncleworf » 03 Apr 2013 15:45

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

margce
Posts: 22
Joined: 28 Aug 2017 02:34

Re: Extended GLCD library for PIC18 - new version

#22 Post by margce » 30 Aug 2017 04:25

Janni,

did you ever ported this for mC PRO?

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#23 Post by janni » 30 Aug 2017 10:36

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.

margce
Posts: 22
Joined: 28 Aug 2017 02:34

Re: Extended GLCD library for PIC18 - new version

#24 Post by margce » 31 Aug 2017 04:29

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

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#25 Post by janni » 31 Aug 2017 12:07

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.

margce
Posts: 22
Joined: 28 Aug 2017 02:34

Re: Extended GLCD library for PIC18 - new version

#26 Post by margce » 23 Feb 2018 00:27

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

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18 - new version

#27 Post by janni » 23 Feb 2018 01:35

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.

margce
Posts: 22
Joined: 28 Aug 2017 02:34

Re: Extended GLCD library for PIC18 - new version

#28 Post by margce » 23 Feb 2018 01:41

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.

trengtor
Posts: 94
Joined: 06 May 2014 16:33

Re: Extended GLCD library for PIC18 - new version

#29 Post by trengtor » 19 May 2019 06:30

Danger! Viral content!

MicroMark
Posts: 181
Joined: 11 Feb 2011 17:22

Re: Extended GLCD library for PIC18 - new version

#30 Post by MicroMark » 19 May 2019 16:58

trengtor wrote:Danger! Viral content!
I have been using this library for 3 years without problem. The only problem I have is I need a pic24/dspic33 version.

Also just downloaded the latest version and scanned with webroot. No viruses found

Post Reply

Return to “mikroPascal PRO for PIC General”