From 63966da14ab66bf711547f94e4d185f2027ad253 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 17 Dec 2019 23:59:05 -0800 Subject: add sound-reactive mode and pattern-cycling interrupt --- config.h | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'config.h') 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 -- cgit v1.2.3-70-g09d2