diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2019-12-17 23:59:05 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2019-12-17 23:59:05 -0800 |
commit | 63966da14ab66bf711547f94e4d185f2027ad253 (patch) | |
tree | fddaf4558fb2ed23952768ad549f9dff36422e53 /config.h | |
parent | c5047bb9952655dc8d0fabf6a54b9e278b243d8b (diff) | |
download | christmas_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.h | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -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 |