9 years, 8 months ago.

Compatibility with Adafruit 2.8" TFT Touch Shield v2

Hello community, somebody have tested this display library with the Adafruit 2.8" TFT Touch Shield v2?

Work well?

Thanks

Question relating to:

2 Answers

9 years, 5 months ago.

I tried Adafruit 2.8 TFT v2 with mbed F401RE. But I just confirmed using "SPI_TFT_ILI9341" class.

Here is my test code:

Adafruit 2.8 TFT test code

#include "stdio.h"
#include "mbed.h"
#include "SPI_TFT_ILI9341.h"
#include "string"
#include "Arial12x12.h"
#include "Arial24x23.h"
#include "Arial28x28.h"
#include "font_big.h"

SPI_TFT_ILI9341 TFT(D11, D12, D13, D10, NC, D9,"TFT"); 
 
int main() {

    //Multiple fonts
    TFT.foreground(White);
    TFT.background(Blue);
    TFT.cls();
    TFT.set_font((unsigned char*) Arial24x23);
    TFT.locate(0,0);
    TFT.printf("Different Fonts:");
    TFT.set_font((unsigned char*) Neu42x35);
    TFT.locate(0,30);
    TFT.printf("Hello Mbed 1");
    TFT.set_font((unsigned char*) Arial24x23);
    TFT.locate(20,80);
    TFT.printf("Hello Mbed 2");
    TFT.set_font((unsigned char*) Arial12x12);
    TFT.locate(35,120);
    TFT.printf("Hello Mbed 3");
}




Result image (I don't know why right side font is clipped) :
/media/uploads/kdegawa/f410re_with_adafruit_tft.jpg

Mr. Tanaka's program also may help you (I haven't tested yet).

https://developer.mbed.org/users/Rhyme/code/TFT_test_frdm-kl25z/

posted by k dgw 08 Nov 2014
9 years, 5 months ago.

The Touch Sensor Device of Adafruit is different from the one used with SeeedStudio. So I implemented my SPI_STMPE610.[cpp/h] which barely reads out x,y,z from the sensor. I'm still learning how to create and publish library, so for the time being please refer to those source code(s). I have tested the code with FRDM-KL25Z and FRDM-K64F.

For the FRDM-K64K port names must be changed as well as the jumper J11 must be cut to make TSC work as the signal is also connected to SWD signal as default. Meantime you need to put jumper header to J11 so that you can re-jumper the signal to make the SWD work.

The blue jumper pin is J11 /media/uploads/Rhyme/frdm-k64f_small.jpg

moto (aka Rhyme)

Today I have published SPI_STMP610, which is my trial of Touch Sensor Controller on the Adafruit 2.8" TFT. Hopefully the library should be easier to use than my previous sample program. moto

posted by Motoo Tanaka 08 Nov 2014