SeeedStudio 2.8" TFT Screen with Adafruit's ILI9341 library
There are a ton of very useful shields on the market for Arduinos, but the hardware is just one piece of the puzzle. For example, RadioShack sells SeeedStudio shields, which are pretty well made, but their software libraries have been a little bit rough.
A long while back, I purchased a 2.8" TFT Touch Shield which has laid dormant until I started working on a transponder application for my model rocketry projects. I started out using SeeedStudio's TFT library but it was very slow and not very featureful. For example, sending many draw commands would cause a lot of flickering. You could not change the orientation, either, which is supported by the ILI9341 driver, but not SeeedStudio's library.
After a little bit of searching, I found that Adafruit sells a very similar shield. The key being that the LCD driver chip, the ILI9341, was the same as the SeeedStudio shield. Best of all, Adafruit's driver uses the Adafruit GFX library which is a very nice, and fast, drawing library, with support for many different fonts.
Using the Library
The only real difference between the SeeedStudio shield and Adafruit's is the pin mapping. SeeedStudio has chosen pin 5 as the TFT select pin, and pin 6 as the TFT data/command pin. This means only a tiny change is necessary, as shown in the example below:
#define TFT_DC 6 #define TFT_CS 5 Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
This is pretty great news if you want additional font rendering capabilities, the ability to change orientation, or just overall better performance. Give it a try!
- July 2019
- Closing Channels Twice in Go
- May 2019
- March 2018
- Refactoring, Now With Generics!
- November 2017
- Packages 3.2 released!
- September 2017
- Introducing the MOTKI CLI
- July 2017
- Decoupling Yourself From Dependencies
- May 2017
- Model Rocketry Update
- April 2017
- Dynamic DNS with homedns
- March 2017
- The Story I Heard
- February 2017
- New squIRCy2 Website