From 6283e6acd9cb2d47d72321597a867d1be1dd3be7 Mon Sep 17 00:00:00 2001
From: "jamesimmanuel.magsino@stud.h-da.de" <James Immanuel Magsino>
Date: Wed, 20 Nov 2024 10:58:19 +0100
Subject: [PATCH] Explanatory comments

---
 src/main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/main.c b/src/main.c
index 536449e0..67778a88 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,7 +11,16 @@ const uint8_t zeile[8] = {0x00, 0x02, 0x04, 0x06, 0x08, 0x10, 0x12, 0x14};
 const uint8_t fill[17] = {0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
 
 const uint8_t empty[17] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+// erste byte: bei welche zeile es anfÃĪngt
+// 0x00 => data address pointer command begins with 0000, second half modifies command to tell which line it is
+/*
+lines go from 0 - 15 => nimm alle gerade (0, 2, 4, 6, 8, 10, 12, 14), (1, 3, 5, 7, 9, 11, 13, 15)
 
+so every other byte is egal
+
+0xff == every led in row lights up (all 8 bits are lit up)
+
+*/
 const uint8_t matrix[9][17] = {
     {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // empty
     {0x00, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // achtel
-- 
GitLab