I've tested the TFT screen but I can't get any font changed and no value printed. Can you help?
TFT screen: https://www.waveshare.com/wiki/2.8inch_TFT_Touch_Shield
The code would be here:
#include
#include
#include
#define __AVR_ATmega32U4__
int test;
void setup()
{
SPI.setDataMode(SPI_MODE3);
SPI.setBitOrder(MSBFIRST);
SPI.setClockDivider(SPI_CLOCK_DIV4);
SPI.begin();
test=10;
Tft.lcd_init(); // init TFT library
Tft.setRotation(Rotation_90_D);
Tft.lcd_display_string(10, 120, (const uint8_t *)"Hello, world !", FONT_1608, BLUE);
Tft.lcd_display_string(30, 152, (const uint8_t *)"10", 16, RED);
}
void loop()
{
}