summaryrefslogtreecommitdiff
path: root/led_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'led_info.h')
-rw-r--r--led_info.h25
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,
+ },
+ },
+};