Added UML

This commit is contained in:
sam
2024-03-01 14:09:23 +01:00
parent 5c59dc033c
commit 20a5446c8c

View File

@@ -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