You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
447 B
Python

#!/usr/bin/python3
from omnia import leds
from random import randint
from time import sleep
strip = leds.LedStrip(leds.omnia_led_order)
def random():
# Víc kvantizované
return randint(1, 4)*64
while True:
for led in strip:
led.set(leds.LedState(
r = random(),
g = random(),
b = random(),
brightness = random(),
autonomous = False,
))
sleep(.25)