diff --git a/docs/images/info_003_ports/ports.png b/docs/images/info_003_ports/ports.png
new file mode 100644
index 0000000..159290c
Binary files /dev/null and b/docs/images/info_003_ports/ports.png differ
diff --git a/src/modules/info_003_ports/doc/index.md b/src/modules/info_003_ports/doc/index.md
new file mode 100644
index 0000000..577ff8e
--- /dev/null
+++ b/src/modules/info_003_ports/doc/index.md
@@ -0,0 +1,9 @@
+# Appendix C: Poorten
+
+De donkerblauwe, balkvormige poortmodule kan poorten tonen of verbergen. De module mag niet afgelezen
+worden wanneer die in beweging is.
+
+\begin{figure}[!b]
+ \centering
+ \includegraphics[width=10cm,height=5cm,keepaspectratio]{./info_003_ports/ports.png}
+\end{figure}
diff --git a/src/modules/info_003_ports/doc/ports.svg b/src/modules/info_003_ports/doc/ports.svg
new file mode 100644
index 0000000..2d806e2
--- /dev/null
+++ b/src/modules/info_003_ports/doc/ports.svg
@@ -0,0 +1,485 @@
+
+
+
+
diff --git a/src/modules/info_ports/info_ports.ino b/src/modules/info_003_ports/info_003_ports.ino
similarity index 79%
rename from src/modules/info_ports/info_ports.ino
rename to src/modules/info_003_ports/info_003_ports.ino
index 603aeb5..baccae2 100644
--- a/src/modules/info_ports/info_ports.ino
+++ b/src/modules/info_003_ports/info_003_ports.ino
@@ -1,3 +1,25 @@
+/* Format of the info message
+
+length = 1 byte
+id = 3
+
+message:
+X
+-> binary value
+
+There are 4 bits in the value that indicate
+
+VGA: 8-bit
+Serial: 4-bit
+MIDI: 2-bit
+Parallel: 1-bit
+
+If a bit is 0, this means the port is shown, if it is 1, the port is hidden.
+
+For example, if the value is 7 (in binary: 0111), that means that only the VGA port is visible.
+*/
+
+
#include
#include
@@ -66,7 +88,7 @@ void loop() {
}
int info_generator(uint8_t* buffer) {
- uint8_t location = random(16);
+ uint8_t location = random(0), 15);
buffer[0] = location;
setPosition(location);
return 1;
diff --git a/src/modules/info_ports/info_ports.scad b/src/modules/info_003_ports/info_ports.scad
similarity index 100%
rename from src/modules/info_ports/info_ports.scad
rename to src/modules/info_003_ports/info_ports.scad