summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorvmisovic <vladimir.misovic03@gmail.com>2023-02-21 13:18:51 +0100
committerAleksa Vuckovic <aleksa@vuckovic.cc>2023-03-10 23:48:43 +0100
commitf6ebc8903c51435cccfc95915f75d96f73f16fa7 (patch)
tree2782af11a61f1f3f828d568019174d67a9fed26f /src/config.h
parent30a0aafd0feb6615b17bd226ba82010a6aaeb20b (diff)
vmisovic: code organization, drawing letters
source files moved to 'src' folder program divided into multiple files drawing letters aleksav013: fixed vmisovic commits moved functions from .h to .c file renamed led_cube.c to main.c
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 0000000..7f8bc9a
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,22 @@
+#ifndef CONFIG_H
+#define CONFIG_H
+// configuration file
+
+// define pico gpio pins used for controlling 74HC595 chips
+#define DATA_PIN 2
+#define CLOCK_PIN 3
+#define LATCH_PIN 4
+#define LED_PIN 25
+
+// define the order of 74HC595 chain
+#define CHIP_0 0
+#define CHIP_1 8
+#define CHIP_2 6
+#define CHIP_3 4
+#define CHIP_4 2
+#define CHIP_5 1
+#define CHIP_6 3
+#define CHIP_7 5
+#define CHIP_8 7
+
+#endif