Jump to content
43oh

Can Stellaris Graphics library be ported over to Energia?


Recommended Posts

Hi Energia experts,


 


I installed StellarisWare and there are 2 important libraries. One is the Peripheral driver library. Energia did a good job replacing the peripheral driver library with the Arduino API. However, the Stellaris Graphics library has no equivalent in Energia. Is it possible to port this library over in the first place? 

Link to post
Share on other sites

I guess I have the same question :-)

 

I have an ST7735 (1.8" TFT, Adafruit-alike) and I'm trying to use it under Energia on Stellaris: I'm _very_confused by the available options for graphics libraries...

 

(I also have a 2.4" TFT with touchpad and SD slot but thought I'd try for the SPI-based one first as it was easy to get going on Arduino.)

 

Thanks,

Steve

Link to post
Share on other sites

There's already a library for the ST7735 tested on the Stellaris / Tiva, see [Energia Library] Colour LCD BoosterPack Library

 

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

 

The 2.2" colour LCD based on the ILI9225B also has its library, see [Energia Library] Colour LCD 2.2" Touch Library for LaunchPad + StellarPad

 

What is the reference of your 2.4" TFT with touchpad and SD slot?

 

I bought one 2.8" for USD12 with touch based on the ILI9320.

 

I'm consolidating all those libraries, as the line, rectangle, circle, text, ... primitives are the same. Only initialisation, area selection and display, point selection and display change from one display to another. It gave me the opportunity to work on a virtual class.

Link to post
Share on other sites

Regarding "There's already a library for the ST7735 tested on the Stellaris / Tiva, see [Energia Library] Colour LCD BoosterPack Library"

 

Quick question - in RobG's orginal code there were defines for whatever LCD controller you were using.  Maybe I am looking at the wrong thing...but I can't seem to find that anywhere in the code this points to....OR...does that library now ONLY work with the ST7735?

 

Thanks!

Link to post
Share on other sites

 

Hi Energia experts,

 

I installed StellarisWare and there are 2 important libraries. One is the Peripheral driver library. Energia did a good job replacing the peripheral driver library with the Arduino API. However, the Stellaris Graphics library has no equivalent in Energia. Is it possible to port this library over in the first place? 

 

There may be licensing issues. The peripheral driver is licensed under a BSD license, but the Grlib and USBlib fall under the "Ti Clickwrap license". this license includes the following clause:

g. Restrictions. You shall maintain the source code versions of the Licensed

Materials under password control protection and shall not disclose such source

code versions of the Licensed Materials, or any derivative thereof, to any

person other than your employees and contractors whose job performance requires

access. You shall not use the Licensed Materials with a processing device

manufactured by or for an entity other than TI, and you agree that any such

unauthorized use of the Licensed Materials is a material breach of this

Agreement. Except as expressly provided in this Agreement, you shall not copy,

publish, disclose, display, provide, transfer or make available the Licensed

Materials to any third party and you shall not sublicense, transfer, or assign

the Licensed Materials or your rights under this Agreement to any third party.

You shall not mortgage, pledge or encumber the Licensed Materials in any way.

You shall not (i) incorporate, combine, or distribute the Licensed Materials,

or any derivative thereof, with any Public Software, or (ii) use Public

Software in the development of any derivatives of the Licensed Materials, each

in such a way that would cause the Licensed Materials, or any derivative

thereof, to be subject to all or part of the license obligations or other

intellectual property related terms with respect to such Public Software,

including but not limited to, the obligations that the Licensed Materials, or

any derivative thereof, incorporated into, combined, or distributed with such

Public Software (x) be disclosed or distributed in source code form, be

licensed for the purpose of making derivatives of such software, or be

redistributed free of charge, contrary to the terms and conditions of this

Agreement, (y) be used with devices other than TI Devices, or (z) be otherwise

used or distributed in a manner contrary to the terms and conditions of this

Agreement. As used in this Section 2(g), "Public Software" means any software

that contains, or is derived in whole or in part from, any software distributed

as open source software, including but not limited to software licensed under

the following or similar models: (A) GNU's General Public License (GPL) or

Lesser/Library GPL (LGPL), (B) the Artistic License (e.g., PERL), © the

Mozilla Public License, (D) the Netscape Public License, (E) the Sun Community

Source License (SCSL), (F) the Sun Industry Standards Source License (SISL),

(G) the Apache Server license, (H) QT Free Edition License, (I) IBM Public

License, and (J) BitKeeper.

 

This might be keeping that library out of Energia.

Link to post
Share on other sites

Regarding "There's already a library for the ST7735 tested on the Stellaris / Tiva, see [Energia Library] Colour LCD BoosterPack Library"

 

Quick question - in RobG's orginal code there were defines for whatever LCD controller you were using.  Maybe I am looking at the wrong thing...but I can't seem to find that anywhere in the code this points to....OR...does that library now ONLY work with the ST7735?

 

Thanks!

The library I've released only works for the ST7735 controller, as the screen I bought has this controller.

 

Now, adapting the library to other controllers isn't difficult: just take the controller specific code from RobG's original code and paste it into the library for Energia.

Link to post
Share on other sites
  • 2 months later...

 

Hi Energia experts,

 

I installed StellarisWare and there are 2 important libraries. One is the Peripheral driver library. Energia did a good job replacing the peripheral driver library with the Arduino API. However, the Stellaris Graphics library has no equivalent in Energia. Is it possible to port this library over in the first place? 

 

 

I'm currently working on a library suite for display and touch, the LCD_screen Library Suite.

 

As at today, it supports the following screens:

  • Universal Colour LCD BoosterPack
  • LCD 2.2" With Touch BoosterPack
  • The 2.8" HY28A LCD Screen
  • and soon the Kentec 3.5" BoosterPack for Stellaris.
The library features graphics and GUI elements.
 
post-389-0-89820300-1373377510.jpg post-389-0-22361700-1373377507.jpg
 
Link to post
Share on other sites

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...