Rei Vilo 695 Posted May 29, 2013 Share Posted May 29, 2013 Hi! I've decided to consolidate the libraries I've developed for different screens into a single one, the LCD_screen Library Suite. Download with examples and documentation is available here. The library runs on the LaunchPads MSP430 and Stellaris with Energia 0009. As at today, the following screens are supported: Color LCD Booster Pack (ST7735R) http://forum.43oh.com/topic/1758-color-lcd-booster-pack/ 2.2" Color LCD Booster Pack with Touch (ILI9225B+XPT2046) http://forum.43oh.com/topic/2574-22-color-lcd-booster-pack-with-touch/ 2.8" Touch Screen TFT LCD with SPI interface (ILI9320+XPT2046) http://www.hotmcu.com/28-touch-screen-tft-lcd-with-spi-interface-p-42.html I also leverage the high-level libraries I wrote for the 4D Systems screens, for example this clock that literally requires two lines of code: myClock.define(&myScreen, 160, 120, 60); myClock.draw(hour, minute, second, "Message"); Enjoy bluehash, pine and PTB 3 Quote Link to post Share on other sites
spirilis 1,265 Posted May 29, 2013 Share Posted May 29, 2013 Could this work with B&W LCDs like the Nokia 1202 (96x68 I think)? I could offer help with the hardware & protocol piece. Sent from my Galaxy Note II with Tapatalk Quote Link to post Share on other sites
Rei Vilo 695 Posted May 29, 2013 Author Share Posted May 29, 2013 Actually, yes thanks to the modularity of the library. You only need to create a new class for the Nokia 1202 derived from the LCD_screen_font class write the four specific functions inherited from the pure virtual functions: LCD_screen_font(); // constructor with initialisation code void _setPoint(uint16_t x1, uint16_t y1, uint16_t colour); // draw a single point void _fastFill(uint16_t x1, uint16_t y1, uint16_t x2, uint16_t y2, uint16_t colour); // for faster area display void _getRawTouch(uint16_t &x0, uint16_t &y0, uint16_t &z0); // if touch available, otherwise false = (0, 0, 0) Optionally, you can add more functions to bring new features and speed up display. Quote Link to post Share on other sites
bluehash 1,581 Posted May 30, 2013 Share Posted May 30, 2013 Thanks for taking the initiative. spirilis 1 Quote Link to post Share on other sites
L293D 11 Posted May 30, 2013 Share Posted May 30, 2013 Quick question - I see a bunch of examples in the library which is awesome, however I notice that for instance the gauge examples are asking for files which are not present in the zip file. Am I missing something, or is the zip file missing something? Also, so far, I like the library Rei...great work! L293D PTB 1 Quote Link to post Share on other sites
dpharris 13 Posted May 31, 2013 Share Posted May 31, 2013 Wow, this looks great. I have been working on a menu library, and had made some changes to you previous library to support it. However, it looks like you have made similar changes for this library, so I will convert over and make the menu library available when it is functional. Thanks for all your hard work, its fantastic. David Quote Link to post Share on other sites
Rei Vilo 695 Posted May 31, 2013 Author Share Posted May 31, 2013 You're welcome! I plan to implement the GUI I've developed for other screens, including label, dialog box, menu, ... For more details, see http://embeddedcomputing.weebly.com/gui.html The only missing element is adding extra-RAM and/or SD-card to save what's behind the dialog box and the menu. bluehash 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted May 31, 2013 Author Share Posted May 31, 2013 Quick question - I see a bunch of examples in the library which is awesome, however I notice that for instance the gauge examples are asking for files which are not present in the zip file. Am I missing something, or is the zip file missing something? Also, so far, I like the library Rei...great work! You're welcome! The gauge object needs some polishing before being released. Stay tuned! Quote Link to post Share on other sites
L293D 11 Posted May 31, 2013 Share Posted May 31, 2013 Rei - You mentioned needing to add extra ram to allow saving what is behind dialog boxes etc....I have been meaning to ask you if there would be a way to use your SPI RAM library to do just that? Specifically, there is a really great graphics library for the Nokia 5110, the only thing keeping it from running on the MSP430 is that it needs a screen buffer that is 504 bytes...and the 512 on the 2553 just is not enough. Would there be any issue with using the SPI RAM library for this? L293D Quote Link to post Share on other sites
RobG 1,892 Posted May 31, 2013 Share Posted May 31, 2013 @L293D FYI, for non-Energia projects, you can use UCLCD library, which has memory routines that work with my LCD booster packs (the ones that have optional memory.) Quote Link to post Share on other sites
Rei Vilo 695 Posted May 31, 2013 Author Share Posted May 31, 2013 Rei - You mentioned needing to add extra ram to allow saving what is behind dialog boxes etc....I have been meaning to ask you if there would be a way to use your SPI RAM library to do just that? Specifically, there is a really great graphics library for the Nokia 5110, the only thing keeping it from running on the MSP430 is that it needs a screen buffer that is 504 bytes...and the 512 on the 2553 just is not enough. Would there be any issue with using the SPI RAM library for this? L293D I always explore each part of a project separately before merging them. So the SPI RAM library was just a step to LCD_screen. Now, for not many more $ than the Nokia 5110, you can have the HY28A that features 320x240 pixels, colour, touch and a really fast controller, all that for just USD12! Quote Link to post Share on other sites
dpharris 13 Posted June 2, 2013 Share Posted June 2, 2013 You're welcome! I plan to implement the GUI I've developed for other screens, including label, dialog box, menu, ... Ok, I will wait. I had planned not to include storage of background ... For simpler UIs one doesn't need it, but having that is great. Is you code somewhere? David. Quote Link to post Share on other sites
dpharris 13 Posted June 2, 2013 Share Posted June 2, 2013 .... Hey, after rooting around in you 4D stuff I found the GUI code. Thanks you again for your great work. David Quote Link to post Share on other sites
Rei Vilo 695 Posted June 2, 2013 Author Share Posted June 2, 2013 Is you code somewhere? Former library is at http://embeddedcomputing.weebly.com/serial_lcd-library-suite-for-4d-systems-screens dpharris 1 Quote Link to post Share on other sites
bluehash 1,581 Posted June 3, 2013 Share Posted June 3, 2013 Hi Rei, If you need any support for LCD hardware, I'll try to sponsor you. PM me and I'll see if I can work things out. 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.