lightaiyee 0 Posted April 17, 2013 Share Posted April 17, 2013 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? Quote Link to post Share on other sites
jscrane 12 Posted April 17, 2013 Share Posted April 17, 2013 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 Quote Link to post Share on other sites
bluehash 1,581 Posted April 17, 2013 Share Posted April 17, 2013 The Energia guys will get back.. just give them some time. Quote Link to post Share on other sites
Rei Vilo 695 Posted April 17, 2013 Share Posted April 17, 2013 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. Quote Link to post Share on other sites
L293D 11 Posted April 18, 2013 Share Posted April 18, 2013 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! Quote Link to post Share on other sites
hvontres 22 Posted April 18, 2013 Share Posted April 18, 2013 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), ( 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. igor 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted April 20, 2013 Share Posted April 20, 2013 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. Quote Link to post Share on other sites
Rei Vilo 695 Posted July 14, 2013 Share Posted July 14, 2013 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. The dedicated thread is http://forum.stellarisiti.com/topic/643-energia-library-lcd-screen-library-suite Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.