From 6c0b3a277b5c9172f860dc33aaf2d657eb4c6028 Mon Sep 17 00:00:00 2001 From: lash21 Date: Sun, 27 Sep 2026 15:44:01 +0200 Subject: [PATCH] folder structure changed --- inos/{v1/v1.ino => Smart-Watch.ino} | 0 inos/text|collor_sketch/collor_sketch.ino | 30 ----------------------- 2 files changed, 30 deletions(-) rename inos/{v1/v1.ino => Smart-Watch.ino} (100%) delete mode 100644 inos/text|collor_sketch/collor_sketch.ino diff --git a/inos/v1/v1.ino b/inos/Smart-Watch.ino similarity index 100% rename from inos/v1/v1.ino rename to inos/Smart-Watch.ino diff --git a/inos/text|collor_sketch/collor_sketch.ino b/inos/text|collor_sketch/collor_sketch.ino deleted file mode 100644 index 20bfc10..0000000 --- a/inos/text|collor_sketch/collor_sketch.ino +++ /dev/null @@ -1,30 +0,0 @@ -#include -#include -#include - -#define TFT_DC D7 -#define TFT_RST D9 - -Arduino_DataBus *bus = new Arduino_HWSPI(TFT_DC, -1); -Arduino_GFX *gfx = new Arduino_ST7789(bus, TFT_RST, 0, true, 240, 240, 0, 0); - -void setup() { - gfx->begin(); - - gfx->fillScreen(ST77XX_GREEN); - - gfx->setTextColor(ST77XX_BLACK); - -} - -void loop() { - // put your main code here, to run repeatedly: - drawText(20, 10, 8, "HALLO"); delay(2000); - drawText(20, 50, 8, "WORLD"); delay(2000); -} - -void drawText(int width, int hight,int size, const char* text) { - gfx->setCursor(width, hight); - gfx->setTextSize(size); - gfx->println(text); -}