gmtii 11 Posted August 14, 2013 Share Posted August 14, 2013 hi, I've ported the Seeed library for cheap ebay 2.2 inch ILI9341 displays (only tested on Stellaris), http://www.ebay.com/itm/1PC-2-2-Inch-SPI-TFT-LCD-Serial-Port-Module-Display-ILI9341-5V-3-3V-New-/200948143239?pt=Cake_Decorating_Supplies&hash=item2ec9715487 https://github.com/gmtii/ILI9341_energia Saludos! Rei Vilo, energia, reaper7 and 4 others 7 Quote Link to post Share on other sites
bluehash 1,581 Posted August 14, 2013 Share Posted August 14, 2013 hi, I've ported the Seeed library for cheap ebay 2.2 inch ILI9341 displays (only tested on Stellaris), http://www.ebay.com/itm/1PC-2-2-Inch-SPI-TFT-LCD-Serial-Port-Module-Display-ILI9341-5V-3-3V-New-/200948143239?pt=Cake_Decorating_Supplies&hash=item2ec9715487 https://github.com/gmtii/ILI9341_energia Saludos! @@gmtii, Thanks! Do you have any pics? Quote Link to post Share on other sites
gmtii 11 Posted August 14, 2013 Author Share Posted August 14, 2013 Yes I do. What do you need? Quote Link to post Share on other sites
bluehash 1,581 Posted August 14, 2013 Share Posted August 14, 2013 Did you upload them to the forum? I'm not able to see any pics. If you use imgur or photobucket, it gets blocked at a number of places. Quote Link to post Share on other sites
nemetila 12 Posted January 22, 2014 Share Posted January 22, 2014 I'm testing your code on Tiva C LaunchPad using the same type of LCD module. It displays perfectly with text.ino example, but it sends incorrect LCD_ID to my PC via UART/USB. The result i get: Read TFT ID failed, ID should be 0x09341, but read ID = 0x000 or Read TFT ID failed, ID should be 0x09341, but read ID = 0xFFFFFF I use the same pin fonfig as you used. Did your module send the correct ID? Thanks in advance. Quote Link to post Share on other sites
gmtii 11 Posted January 23, 2014 Author Share Posted January 23, 2014 I think it is ok... mine reads 0x000 too Quote Link to post Share on other sites
spirilis 1,265 Posted January 23, 2014 Share Posted January 23, 2014 I just ordered 2 of these to play with. Never actually used a color TFT before in any of my projects. Quote Link to post Share on other sites
mega_john 0 Posted January 27, 2014 Share Posted January 27, 2014 hi, I've ported the Seeed library for cheap ebay 2.2 inch ILI9341 displays (only tested on Stellaris), Hi! can you post connection pinout? Quote Link to post Share on other sites
spirilis 1,265 Posted February 13, 2014 Share Posted February 13, 2014 Got my new displays in, and got one working with the same text example... Tiva-C TM4C123GH6PM LaunchPad used here. Two things: 1. Please include the FastDigitalWrite lib, I didn't have that; I found it over here: http://forum.stellarisiti.com/topic/675-solved%C2%A0launchpad-stellaris-on-energia-miso-erratic-behaviour-on-spi0-and-spi3/ (the SPI_all_ports_LM4F.zip file, I copied the FastDigitalWrite.* files over to get it working) Looks like @@Rei Vilo wrote this one. 2. The Tiva-C shows as board not supported... Here's what I did to both FastDigitalWrite.h and TFTv2.cpp: // Board check #include "Energia.h" #if defined(TARGET_IS_BLIZZARD_RB1) || defined(TARGET_IS_SNOWFLAKE_RA0) #else #error Board not supported. #endif Moved the #include "Energia.h" up above, then checked for the TARGET_IS_ definition instead. SNOWFLAKE_RA0 is in preparation for the new TM4C129-series LaunchPad FYI (that silicon uses TARGET_IS_SNOWFLAKE_RA0 in the TivaWare headers). Anyway, pics or it didn't happen: Pinout is mostly self-explanatory, Vcc/GND go to the 3.3V Vcc and GND, SCK goes to the boosterpack-standard SPI SCLK pin (PB4), SDO (MISO) goes to the boosterpack-standard MISO pin (PB6), SDI (MOSI) goes to the boosterpack-standard MOSI pin (PB7), then RESET/LED/DC/CS is your choice and you define them in the object initializer statement in setup(). All in all, what a sweet LCD! It's my first TFT for MCU work so I'll be gushing over it. Time to dream up some projects :-) And good work on the port! Rei Vilo, StrangerM and bluehash 3 Quote Link to post Share on other sites
spirilis 1,265 Posted March 16, 2014 Share Posted March 16, 2014 PS- Did Seeed really misspell the word "Triangle"? void drawTraingle(int poX1, int poY1, int poX2, int poY2, int poX3, int poY3, uint16_t color); ... void TFT::drawTraingle( int poX1, int poY1, int poX2, int poY2, int poX3, int poY3, uint16_t color) { drawLine(poX1, poY1, poX2, poY2,color); drawLine(poX1, poY1, poX3, poY3,color); drawLine(poX2, poY2, poX3, poY3,color); } I'm slightly amused Think I'm going to use this as my first experiment with writing a TivaWare GraphLib driver, porting the code over to C. sq7bti 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted March 17, 2014 Share Posted March 17, 2014 There's also the LCD_screen library with support for Rob's Color LCD Booster Pack (320x240 with microSD card socket based on ILI9340) on Energia. http://forum.43oh.com/topic/3911-energia-library-lcd-screen-library-suite/?p=44850 Quote Link to post Share on other sites
spirilis 1,265 Posted March 17, 2014 Share Posted March 17, 2014 @@Rei Vilo Do you know if LCD_screen supports the 9341 or should the differences be negligible? Quote Link to post Share on other sites
RobG 1,892 Posted March 17, 2014 Share Posted March 17, 2014 @@spirilis, 9340, 9341, & 9342 are almost identical and should work with the same code (there are vendor specific implementations and require additional configuration.) BTW, my current displays use 9341. spirilis 1 Quote Link to post Share on other sites
Rei Vilo 695 Posted March 22, 2014 Share Posted March 22, 2014 @@Rei Vilo Do you know if LCD_screen supports the 9341 or should the differences be negligible? Relying on the data sheets is one thing, playing with actual screen is another. I went through the commands list on the data sheets and saw no difference. But I hardly trust the data sheets... I haven't managed to read pixel from ILI9340-based screens. Maybe the ILI9341 fixes this issue. But I'd need one ILI9341-based screen to proceed with the required tests to be sure. Quote Link to post Share on other sites
spirilis 1,265 Posted March 22, 2014 Share Posted March 22, 2014 Thanks @@Rei Vilo and @@RobG ! I'll hook this display up to my Tiva again soon and try some LCD_screen examples when I get another few moments. 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.