Add TKinter Visualizer Emulator(Slow but works)

This commit is contained in:
Kariiv
2021-01-09 15:00:38 +02:00
parent 2ffdf0c0af
commit 84e2837f4b
7 changed files with 257 additions and 11 deletions

View File

@@ -1,6 +1,13 @@
from lib.Program import Program
from lib.Litsimaja import Litsimaja
from rpi_ws281x import Color
def Color(red, green, blue):
"""Convert the provided red, green, blue color to a 24-bit color value.
Each color component should be a value 0-255 where 0 is the lowest intensity
and 255 is the highest intensity.
"""
return (red << 16) | (green << 8) | blue
def name():