summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'config.h')
-rw-r--r--config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.h b/config.h
new file mode 100644
index 0000000..53d409b
--- /dev/null
+++ b/config.h
@@ -0,0 +1,15 @@
+// define the pins used controlling 74HC595
+#define DATA_PIN 2
+#define CLOCK_PIN 3
+#define LATCH_PIN 4
+
+// define the order of 74HC595 chain
+#define CHIP_0 0
+#define CHIP_1 1
+#define CHIP_2 3
+#define CHIP_3 5
+#define CHIP_4 7
+#define CHIP_5 8
+#define CHIP_6 6
+#define CHIP_7 4
+#define CHIP_8 2