Jump to content
43oh

[Energia Library] Port of Adafruit_GFX and Adafruit_ST7735


Recommended Posts

Hi everyone,

I did a quick port of these two libraries to Energia on Stellaris.

 

You can find them here:

https://github.com/jscrane/Adafruit-ST7735-Library

https://github.com/jscrane/Adafruit-GFX-Library

 

Note that I used digitalWrite() rather than messing with port registers. The speed doesn't seem too bad all the same. At the moment, I have only tested with hardware SPI.

 

If you inspect the changes I had to make for Energia, it might help with porting further libraries to Stellaris.

 

Cheers,

Steve

Link to post
Share on other sites

Digging into someone else library isn't easy, especially when the library includes MCU-specific optimisation.


 


Please find a library for the ST7735 tested on the Stellaris / Tiva at [Energia Library] Colour LCD BoosterPack Library


 


The Colour LCD BoosterPack was a universal board for many different screens and controllers. 

Link to post
Share on other sites

Well there must be people out there without an LCD BoosterPack who are using Energia specifically because of its Arduino compatibility? (I know this describes me for one.)

 

Surely for such people the existence of familiar Arduino libraries is beneficial so they can get started easily with their existing hardware and sketches?

 

Steve

Link to post
Share on other sites
  • 3 weeks later...

 I think that the Adafruit's library ported Jscrane is more flexible than the other (published by Rei Vilo):

- It handles the differences between different LCD versions. For example I had to change from "black tab" to "red tab" in the example program.

- The class Adafruit_ST7735 is a descendant of the Print class, therefore displaying hex numbers or float variables is very easy.

Of course this vastes the memory, so it would not be recommended/possible in the case of the MSP 430 Launchpad. It is very convenient, however, for the Stellarpad.

 

The LCD Colour library created by Rei Vilo is more memory effective, so it is recommended for the MSP430 Launchpad. However it doesn't handle the differences between differen LCD versions (for example I had to rewrite the color definition table from RGB to BGR order), and the numerical printout is a bit unconvenient (you may have to write your own output routine).

 

Thank both of you for your efforts!

Link to post
Share on other sites
  • 4 years later...
  • 8 months later...
On 25/02/2018 at 6:44 PM, Anik96 said:

cant access this library... 404. .. I want this. please help. will this work with tiva boards ??

The LCD_screen Library Suite is no longer available. 

However, a special edition of the library is included in Energia for the Educational BoosterPack MKII and the Kentec 3.5" screen, and comes as an external library for the Pervasive Displays e-paper screens, to be installed with the Libraries Manager. Watch the training video!

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...