diff options
author | Brett Weiland <techcrazybsw@gmail.com> | 2021-01-01 13:12:17 -0600 |
---|---|---|
committer | Brett Weiland <techcrazybsw@gmail.com> | 2021-01-01 13:12:17 -0600 |
commit | c8b3250f15ac75d60991b3ad2562209e853cc6f4 (patch) | |
tree | 3064f3d49cfc0874df29d20c9ac4c4298447755d /led_info.h |
new file: gradient.h
new file: led_clear.c
new file: led_gradient.c
new file: led_info.h
new file: led_test.c
new file: makefile
new file: push.sh
new file: shit.c
Diffstat (limited to 'led_info.h')
-rw-r--r-- | led_info.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/led_info.h b/led_info.h new file mode 100644 index 0000000..bfa5b0c --- /dev/null +++ b/led_info.h @@ -0,0 +1,25 @@ +#include <ws2811/ws2811.h> +#define GPIO_PIN 18 +#define LED_COUNT 300 +#define STRIP_TYPE WS2812_STRIP +#define DMA 10 + +ws2811_t ledstring = { +.freq = WS2811_TARGET_FREQ, +.dmanum = DMA, +.channel = { +[0] = { + .gpionum = GPIO_PIN, + .count = LED_COUNT, + .invert = 0, + .brightness = 255, + .strip_type = STRIP_TYPE, +}, +[1] = { + .gpionum = 0, + .count = 0, + .invert = 0, + .brightness = 0, + }, + }, +}; |