summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-17 23:59:05 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2019-12-17 23:59:05 -0800
commit63966da14ab66bf711547f94e4d185f2027ad253 (patch)
treefddaf4558fb2ed23952768ad549f9dff36422e53 /config.h
parentc5047bb9952655dc8d0fabf6a54b9e278b243d8b (diff)
downloadchristmas_lights-63966da14ab66bf711547f94e4d185f2027ad253.tar.gz
christmas_lights-63966da14ab66bf711547f94e4d185f2027ad253.tar.xz
add sound-reactive mode and pattern-cycling interrupt
Diffstat (limited to 'config.h')
-rw-r--r--config.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/config.h b/config.h
index 1d25abc..00816db 100644
--- a/config.h
+++ b/config.h
@@ -1,2 +1,18 @@
-#define PIN_LED PB0
-#define NUM_LEDS 50
+#define F_CPU 8000000UL
+
+#define LED_COUNT 50
+#define LED_PIN PB3
+
+#define EQ_PIN_INPUT PB2
+#define EQ_PIN_RESET PB0
+#define EQ_PIN_STROBE PB1
+#define EQ_THRESHOLDS \
+ {16, 82}, \
+ {24, 130}, \
+ {24, 99}, \
+ {24, 79}, \
+ {24, 77}, \
+ {24, 87}, \
+ {26, 37}
+
+#define ISR_PIN PB4