LUAT WS2812

From ElectroDragon Wiki

Usage

WS2812 for nodeMCU

uart.setup(0, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) -- re-init uart in case
ws2812.init()
ws2812.write(string.char(255, 255, 255, 255, 0, 0)) -- turn the two first RGB leds to green

Arduino ESPHome example configuration for SK6812 RGB LED strip, neopixel library. Also can support FastLED library.

light:
 - platform: neopixelbus
   name: "NeoPixel Light"
   id: neopixel_light
   type: GRB
   pin: GPIO2
   num_leds: 60
   variant: SK6812
   method: ESP8266_UART1

Commands send in H801 protocol

  • Install sendip in linux
  • commands should be: sendip -p ipv4 -is 192.168.1.81 -p udp -us 5070 -ud 5060 -d "Hello" -v 192.168.1.81