From 20a5446c8c9c77973e4f27229ab2a27db2510a41 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 1 Mar 2024 14:09:23 +0100 Subject: [PATCH] Added UML --- docs/node-documentation/TFT-screen.md | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/node-documentation/TFT-screen.md b/docs/node-documentation/TFT-screen.md index 82c19aa..50251f0 100644 --- a/docs/node-documentation/TFT-screen.md +++ b/docs/node-documentation/TFT-screen.md @@ -64,6 +64,36 @@ You can connect the wires to any pin except the vcc and the ground. The vcc and We aren't using the cs2 and the pen pin because we arent utilizing the touch function of the screen. +```mermaid +classDiagram + +writeText <|-- Adafruit_ST7796S_kbv +loop <-- writeText + +class writeText{ + +text + +color + +size + +posx + +posy + +writeText() +} + +class Adafruit_ST7796S_kbv{ + +fillScreen() + +fillRect() + +fillCircle() + +fillTriangle() + +fillRoundRect() + +drawChar() + +setTextSize() + +setTextColor() + +setCursor() + +println() +} +``` + ## Sources * https://www.tinytronics.nl/en/displays/tft/4-inch-tft-display-320*480-pixels-with-touchscreen-spi-st7796s Source for Driver * https://github.com/prenticedavid/Adafruit_ST7796S_kbv Download link for the library +