TFT font_1608 font size code problem

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()
{

}

Please post the actual code, after making sure it compiles.

Use code tags when posting code (see the "How to get the best out of this forum" post).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.