Advertisement
D0doooh

NeoPixel 2

Jun 21st, 2020
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.64 KB | None | 0 0
  1. # Example configuration entry
  2. light:
  3.   - platform: partition
  4.     name: "Partition Light"
  5.     segments:
  6.      # Use first LED from the light with ID light1
  7.       - id: light1
  8.         from: 0
  9.         to: 0
  10.   - platform: partition
  11.     name: "Partition Light2"
  12.     segments:
  13.      # Use first LED from the light with ID light1
  14.       - id: light2
  15.         from: 1
  16.         to: 1
  17.   - platform: partition
  18.     name: "Partition Light3"
  19.     segments:
  20.      # Use first LED from the light with ID light1
  21.       - id: light3
  22.         from: 2
  23.         to: 2
  24.  
  25.  
  26.   # Example for light segment source
  27.   - platform: neopixelbus
  28.     type: GRB
  29.     pin: GPIO23
  30.     num_leds: 8
  31.     id: light1
  32.     name: light1Test
  33.   - platform: neopixelbus
  34.     type: GRB
  35.     pin: GPIO23
  36.     num_leds: 8
  37.     id: light2
  38.     name: light2Test
  39.   - platform: neopixelbus
  40.     type: GRB
  41.     pin: GPIO23
  42.     num_leds: 8
  43.     id: light3
  44.     name: light2Test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement