#!/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)