#define BTN_PIN 5
#define TFT_DC 2
#define TFT_CS 15
#include <LovyanGFX.hpp>
#include "tft.h"
#include "f6.h"
#include "dig.h"
LGFX tft;
#define v9 &FreeMonoBold18pt8b
#define v42 &DS_DIGI42pt7b
//SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
void setup() {
Serial.begin(115200);
pinMode(BTN_PIN, INPUT_PULLUP);
tft.begin();
tft.setRotation(3);
tft.setAttribute(CP437_SWITCH, true);
tft.setAttribute(UTF8_SWITCH, false);
// tft.setFont(v9);
tft.setFont(v42);
tft.setTextColor(TFT_WHITE);
tft.setCursor(0, 60);
// const char* str = "ПРИВЕТ";
const char* str = "123";
int ch;
//for (byte f = 0; f < str.length(); f++)
for (byte f = 0; f < strlen(str); f++)
{
ch = (int)str[f];
if (ch > 207 && ch < 210) //RU
{
continue;
}
// else
tft.print(str[f]);
}
}
void loop()
{
}