viri-leds-dmx-sacn/lights/wled.py

14 lines
291 B
Python
Raw Permalink Normal View History

2023-08-07 11:39:15 +00:00
from .common import BaseDMXLight
2023-08-07 12:48:18 +00:00
2023-08-07 11:39:15 +00:00
class WLED(BaseDMXLight):
name = "WLED"
def _dump(self):
offset = self.intensity / 255
return self.address, [
int(self.red * offset),
int(self.green * offset),
int(self.blue * offset),
]