Author Topic: pic32+LCD, any good graph library ?  (Read 6447 times)

0 Members and 1 Guest are viewing this topic.

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
pic32+LCD, any good graph library ?
« on: October 10, 2013, 07:16:07 pm »



Hi, i'd like to buy this board which comes with a pretty PIC32 MPU and a 320x240 LCD. I an looking for good library in order to have "windows", "graph", "icons" and other graphical objects.

Do you know a good piece of software ?
 

Offline kripton2035

  • Super Contributor
  • ***
  • Posts: 2587
  • Country: fr
    • kripton2035 schematics repository
Re: pic32+LCD, any good graph library ?
« Reply #1 on: October 10, 2013, 07:31:11 pm »
why not use the software that is next to this board ?
http://www.mikroe.com/visualtft/
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: pic32+LCD, any good graph library ?
« Reply #2 on: October 10, 2013, 07:48:03 pm »
It costs pretty the same as the board, i am looking for something similar OpenSource
 

Offline mrflibble

  • Super Contributor
  • ***
  • Posts: 2051
  • Country: nl
Re: pic32+LCD, any good graph library ?
« Reply #3 on: October 10, 2013, 07:55:40 pm »
You could try:

http://ugfx.org/get-ugfx/11-documentation/37-get-ugfx-chibios

+

http://forum.chibios.org/phpbb/viewtopic.php?f=3&t=715

No idea about the pic32 port, but ugfx (formerly known as tdisp) works just fine on chibios on stm32f4.
 

Offline veryevil

  • Supporter
  • ****
  • Posts: 221
  • Country: gb
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: pic32+LCD, any good graph library ?
« Reply #5 on: October 10, 2013, 10:12:19 pm »
emWin.

Both NXP and ST have their versions available.

I also think Microchip offers some graphics libs.
================================
https://dannyelectronics.wordpress.com/
 

Offline boz

  • Regular Contributor
  • *
  • Posts: 75
  • Country: nz
    • Roving Dynamics Ltd
Re: pic32+LCD, any good graph library ?
« Reply #6 on: October 18, 2013, 09:48:54 am »
The Microchip libraries are quite hard for the beginner but are very comprehensive if you can stick with them.

If you want something easier, copy the UTFT libraries for arduino/chipkit (pic32), they are open source, should work ok with little modification and give you a good start. The Mikroe libraries are unfortunately closed source, if you can live with that and have one of their PIC32 compilers then you shouldnt go wrong either.
Fearless diver and computer genius
 

Offline tszaboo

  • Super Contributor
  • ***
  • Posts: 7388
  • Country: nl
  • Current job: ATEX product design
Re: pic32+LCD, any good graph library ?
« Reply #7 on: October 18, 2013, 10:00:29 am »
Microchip have their own http://www.microchip.com/pagehandler/en-us/technology/graphics/tools/software.html
I was working with the Microchip graphical library for a long time. I must say, it is reasonably good for drawing menus, keyboards, print on the screen, and drawing pictures. But it was also required to optimize the library, as it was pain slow out of the box. ie. a box drawing was working for any angle box, we used only 90 degrees rectangles so after rewriting, it became much faster. Same for pictures. After I made a RLE encoding for the menu items, it became exponentially faster. Also the screen had relative window addressing, that give us a huge boost.
So the library is a good start with lots of options, but for decent performance you need to optimize it.
 

Offline Tectu

  • Newbie
  • Posts: 2
  • Country: ch
    • µGFX - Embedded GUI
Re: pic32+LCD, any good graph library ?
« Reply #8 on: October 30, 2013, 02:19:33 pm »
Hi, i'd like to buy this board which comes with a pretty PIC32 MPU and a 320x240 LCD. I an looking for good library in order to have "windows", "graph", "icons" and other graphical objects.
The STM32 version of the board you're talking about is actually being fully supported by µGFX since a few days. Therefore you wouldn't have a lot of hassle getting it working.
However, you'd have to use the GDISPStreaming branch from the official repository as it's not in the current release.


~ Tectu
« Last Edit: October 30, 2013, 02:24:44 pm by Tectu »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13748
  • Country: gb
    • Mike's Electric Stuff
Re: pic32+LCD, any good graph library ?
« Reply #9 on: October 30, 2013, 03:55:14 pm »
Microchip have their own http://www.microchip.com/pagehandler/en-us/technology/graphics/tools/software.html
I was working with the Microchip graphical library for a long time. I must say, it is reasonably good for drawing menus, keyboards, print on the screen, and drawing pictures. But it was also required to optimize the library, as it was pain slow out of the box. ie. a box drawing was working for any angle box, we used only 90 degrees rectangles so after rewriting, it became much faster. Same for pictures. After I made a RLE encoding for the menu items, it became exponentially faster. Also the screen had relative window addressing, that give us a huge boost.
So the library is a good start with lots of options, but for decent performance you need to optimize it.

I found a similar situation with the Microchip filing system stuff - it is written in a very simple and straightforward way, but not very optimised. However this does mean that it is relatively easy to optimise it for your particular requirements, as the code is fairly easy to understand, so you can get to the bits you need and tweak them with reasonable chance that you will break anything due to non-obvious 'clever' tricks being used. 
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline legacyTopic starter

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: pic32+LCD, any good graph library ?
« Reply #10 on: November 02, 2013, 04:31:00 pm »
The STM32 version of the board

Thank you, i have also ordered the STM32 version, too =)
 

Offline Tectu

  • Newbie
  • Posts: 2
  • Country: ch
    • µGFX - Embedded GUI
Re: pic32+LCD, any good graph library ?
« Reply #11 on: November 03, 2013, 02:14:17 am »
Thank you, i have also ordered the STM32 version, too =)
Cool, hope you'll enjoy your board!
Feel free to post on the uGFX forum when you're facing any problems.


~ Tectu
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf