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,21 +1,21 @@
from rpi_ws281x import PixelStrip
from lib.FakeStrip import FakeStrip
# from lib.strip.WindowStrip import WindowStrip
# from lib.strip.TkinterStrip import TkinterStrip
from lib.LoopSwitch import LoopSwitch
class Litsimaja(object):
_strip: PixelStrip
_loops: []
def __init__(self):
self._strip = FakeStrip(290, 18, 800000, 10, False, 255, 0, 4104)
self._strip = PixelStrip(290, 18, 800000, 10, False, 255, 0, 4104)
self._loops = []
self._strip.begin()
def count_pixels(self) -> int:
return self._strip.numPixels()
def get_strip(self) -> PixelStrip:
def get_strip(self):
return self._strip
def set_pixel_color(self, n: int, color: int) -> None: