Has anyone used one of these before? I’ve looked at the adafruit_seesaw library, which has an example for a joystick OLED, but can’t find anything for the TFT.
Can someone point me in a direction that might get me started?
I’m trying to get this working as well but I am having different issues.
You do need to include the seesaw library and related code since the TFT reset pin is connected to that I2C chip. The “rst” variable in your code should simply be -1. You also need the Adafruit_GFX library.
I am trying to get the newer Adafruit_GFX library and newer Adafruit_ST7735 library working but the Web IDE seems to be terrible when it comes to handling libraries. I need to figure out some other option for compiling firmware for the latest generation devices. The Particle Dev application doesn’t even know what they are.
Particle Workbench is the way to go.
Currently it's a work-in-progress but quite mature since it's based on the well established VS Code.
However, since it's WIP you'll be asked to sign up to the preview and are kindly asked to report any problems you see
Workbench will allow local and cloud build and you can even build monolithic firmware for debugging.
FYI I have some info going in another related thread:
I had to use (0x5E) as the seesaw address.
Regarding the Adafruit_GFX library, see the comment below from the other thread:
I've begun to work with Particle Workbench and am getting to like it. Adding libraries as you mentioned is a piece of cake, but you do have to get to know a new platform. It's happy with the new generation of devices, and I'm sure as i get to know it better I'll like it even more.
If you get this display running, please share how you did it!
The examples in the AdafruitColorTFTJoystickFeatherWing show how to read the joystick and buttons, and how to do graphic operations on the color TFT display.
I have tried everything in my power to get the “AdafruitColorTFTJoystickFeatherWing” code to work I have been commenting on this code from github for a while with no response.
I have been fighting one compilation error after another. At the moment I am at this one…
adafruit_spitft.h:265:32: error: no members matching ‘Adafruit_GFX::drawRGBBitmap’ in ‘class Adafruit_GFX’
I have been slowly working though each one and never get to a functioning compile.
Both examples are compiling correctly for me for boron 1.5.2 with the CLI compiler. The graphics test example built correctly in the Web IDE for argon 2.0.0-rc.3.
It’s hard to say for sure without the full error log, but I’d guess you’re pulling in an older fork of Adafruit-GFX from somewhere instead of Adafruit_GFX_RK.
That library is a meta-library intended to just pull in the dependent libraries so the AdafruitColorTFTJoystickFeatherWing.cpp and .h files are intended to be empty. It builds fine that way.
First try building the two examples. There should be no code changes necessary for it to build so it’s most likely the wrong version of a library being pulled in from somewhere.
According to the properties file everything seems to be the latest files.
The one that wont compile in VS Workbench is this one: error: no members matching ‘Adafruit_GFX::drawRGBBitmap’ in 'class Adafruit_GFX’
I’m sure it is simple enough to fix it is just beyond my expertise.
I’m running an Argon with the latest firmware loaded. I have tried a tile or two to load via the web compiler but it never worked.
That combination of libraries is unlikely to ever work. Both Adafruit_GFX_RK and Adafruit_mfGFX implement multi-font GFX. And both Adafruit_ST7735_RK and Adafruit_ST7735 implement the driver for the ST7735. Have two different libraries for the same functions almost never works properly.