summaryrefslogtreecommitdiff
path: root/led_info.h
blob: bfa5b0c21f5b395132f7f9cd72e6947195c97247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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,
    },
  },
};