Extended GLCD library for PIC18 - new version

General discussion on mikroPascal PRO for PIC.
Author
Message
janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

Re: Extended GLCD library for PIC18

#10 Post by janni » 14 Mar 2012 14:53

Forgotten to write about it :( - new GLCD library, this time called uGLCD is available for some time already. It's a successor of xGLCD, somewhat expanded, with different unit organisation and using sbits (thus shifting the adjustable part to main unit). It's also easily integrated with IDE via Package Manager.

Library part responsible for contact with hardware (GLCD controller) is still separate and as kind of hardware driver may be modified to fit different controllers. There are examples of such 'drivers' for controllers with write-only SPI interface, like uC1701 (small DOG displays) or ST7565R (some COG displays). Displays with sizes different from regular 128x64 pixels (like those with three KS107/8 controllers) may also be used with uGLCD.

uGLCD library optimized for PIC18 processors may be downloaded from this site.

There exists version of the library in pure Pascal that may, in principle, be compiled for any PIC family with enough RAM and ROM, but I haven't had time (or need, so far) to test it with processors more advanced than PIC18s.

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

Re: Extended GLCD library for PIC18 - new version

#11 Post by janni » 31 Jul 2012 20:59

New version of uGLCD is available (0.07). An Area procedure has been added and bitmap2array program modified. Now it's possible to have compressed (packed) images of a partial screen area stored in Flash. Thanks to Malcolm_M, there's also new driver for GLCDs with ST7528 controllers (160x100 pixels).

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

Re: Extended GLCD library for PIC18 - new version

#12 Post by uncleworf » 28 Mar 2013 21:21

I've installed mP PRO for PIC 6.0.0. Then I try to Install uGLCD .
I download from www,cobir.com and install with Package manager.
Now installed is version _0_006. uGLCDlib.
I need uGLCD_ST7565R for COG display.
Another problem. I need this lib. for mBasic PRO for PIC.
How can I translate??

best Regards
TOM

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: Extended GLCD library for PIC18 - new version

#13 Post by LGR » 28 Mar 2013 21:29

There's a very basic ST7565R driver at Libstock, that contains the Pascal source and should be easily recompiled for PIC18, however, it doesn't have any of the higher level functions. It's just raw graphics.

It would be nice if somehow the vertical byte 128x64 library could be broken into higher level functions and lower lever drivers so that this could be used with hardware other than KS107, but AFAIK, we don't have that.

What I've found is that it's not hard to use the GLCD font generator with the ST7565R driver; you just have to understand how the font generator format works. It's the exact same format between the ST7565R and the KS107.
If you know what you're doing, you're not learning anything.

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

Re: Extended GLCD library for PIC18 - new version

#14 Post by janni » 29 Mar 2013 03:11

uncleworf wrote:I've installed mP PRO for PIC 6.0.0. Then I try to Install uGLCD .
I download from www,cobir.com and install with Package manager.
Now installed is version _0_006. uGLCDlib.
Yes, I've forgotten to update the number in all places :( . Anyway, v 0.06 already had driver for ST7565R with SPI.
Another problem. I need this lib. for mBasic PRO for PIC.
How can I translate??
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.

@LGR
It would be nice if somehow the vertical byte 128x64 library could be broken into higher level functions and lower lever drivers so that this could be used with hardware other than KS107, but AFAIK, we don't have that.
And all this time I believed that I did that :wink: .

LGR
Posts: 3204
Joined: 23 Sep 2004 20:07

Re: Extended GLCD library for PIC18 - new version

#15 Post by LGR » 29 Mar 2013 04:42

:oops:

Oops. I never bothered installing this, because it was only for PIC18, and I'm using the GLCD on PIC32. This does look good. Maybe some day I'll recompile it for PIC32.
If you know what you're doing, you're not learning anything.

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

Post Reply

Return to “mikroPascal PRO for PIC General”