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.
24 lines
462 B
Python
24 lines
462 B
Python
#!/usr/bin/python3
|
|
|
|
from omnia import leds
|
|
from random import randint
|
|
from time import sleep
|
|
import pygame_demo as demo
|
|
|
|
strip = demo.my_strip
|
|
|
|
def random():
|
|
# Víc kvantizované
|
|
return min(255, 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)
|