diff --git a/Documentation/Collors.png b/Documentation/Collors.png new file mode 100644 index 0000000..dae37bd Binary files /dev/null and b/Documentation/Collors.png differ diff --git a/Documentation/Wiring_Plan.odg b/Documentation/Wiring_Plan.odg new file mode 100644 index 0000000..ea8debe Binary files /dev/null and b/Documentation/Wiring_Plan.odg differ diff --git a/Documentation/Wiring_Plan.png b/Documentation/Wiring_Plan.png new file mode 100644 index 0000000..1ec6af9 Binary files /dev/null and b/Documentation/Wiring_Plan.png differ diff --git a/Documentation/xiao_esp32-c6_pinout.png b/Documentation/xiao_esp32-c6_pinout.png new file mode 100644 index 0000000..4287cf8 Binary files /dev/null and b/Documentation/xiao_esp32-c6_pinout.png differ diff --git a/README.md b/README.md index e69de29..410a121 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,9 @@ +Wiring Blueprint: + +![alt text](Documentation/Wiring_Plan.png) + +Pinout for xiao esp32-c6 : + +![alt text](Documentation/xiao_esp32-c6_pinout.png) + +pixelart tool : https://newt.sh/ \ No newline at end of file diff --git a/inos/text|collor_sketch/collor_sketch.ino b/inos/text|collor_sketch/collor_sketch.ino new file mode 100644 index 0000000..20bfc10 --- /dev/null +++ b/inos/text|collor_sketch/collor_sketch.ino @@ -0,0 +1,30 @@ +#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); +} diff --git a/inos/v1/v1.ino b/inos/v1/v1.ino new file mode 100644 index 0000000..975d699 --- /dev/null +++ b/inos/v1/v1.ino @@ -0,0 +1,80 @@ +#include +#include +#include + +#define TFT_DC D7 +#define TFT_RST D9 + +unsigned long SEC=0; +unsigned long MIN=0; +unsigned long HOUR=0; + +unsigned long DAY=0; +unsigned long MONT=0; +unsigned long YEAR=2026; + +unsigned long preMil = 0; +const long interval = 1000; + +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_BLACK); + + gfx->setTextColor(ST77XX_GREEN); + +} + +void loop() { + drawText(10,10, 2, "{"); + drawText(30,30,2,"Time: {"); + + gfx->setCursor(50, 50); + gfx->printf("Hour: %d%c\n", HOUR, ","); + + gfx->setCursor(50, 70); + gfx->printf("Min: %d%c\n", MIN, ","); + + gfx->setCursor(50, 90); + gfx->printf("Sec: %d%c\n", SEC, ","); + + drawText(30,110,2,"},"); + + drawText(30,130,2,"Date: {"); + + gfx->setCursor(50, 150); + gfx->printf("Day: %d%c\n", DAY, ","); + + gfx->setCursor(50, 170); + gfx->printf("Mont: %d%c\n", MONT, ","); + + gfx->setCursor(50, 190); + gfx->printf("Year: %d%c\n", YEAR, ","); + + drawText(10,210,2,"}"); + + updateClock(); +} + +void updateClock(){ + unsigned long curMil = millis(); + + if (curMil - preMil >= interval) { + preMil = curMil; + SEC++; + gfx->fillScreen(ST77XX_BLACK); + } + if (SEC >= 60) {SEC = 0; MIN++;} + if (MIN >= 60) {MIN = 0; HOUR++;} + if (HOUR >= 24) {HOUR = 0; DAY++;} +} + + + +void drawText(int width, int hight,int size, const char* text) { + gfx->setCursor(width, hight); + gfx->setTextSize(size); + gfx->println(text); +} diff --git a/librarys/ESP32-BLE-Keyboard-master.zip b/librarys/ESP32-BLE-Keyboard-master.zip new file mode 100644 index 0000000..7ccb330 Binary files /dev/null and b/librarys/ESP32-BLE-Keyboard-master.zip differ diff --git a/librarys/chronos-esp32-main.zip b/librarys/chronos-esp32-main.zip new file mode 100644 index 0000000..04779d5 Binary files /dev/null and b/librarys/chronos-esp32-main.zip differ