Skip to content

Instantly share code, notes, and snippets.

View tomikazi's full-sized avatar

Thomas Vachuska tomikazi

  • Intel
  • Roseville, CA
View GitHub Profile
@tomikazi
tomikazi / gist:1bb9d002292870b9c4c1e2b13996a001
Created September 17, 2020 04:57
Simple python script to control RGB WS2812B LED strip mounted under the top crossbar of on my Ender 3 Pro. Runs as a service on the OctoPi and integrates with Home Assistant as MQTT light.
#!/usr/bin/python3
import paho.mqtt.client as mqtt
import time
import board
import neopixel
led = neopixel.NeoPixel(board.D18, 15)
bright = 0.75