forked from pvx/litsimaja
Add TKinter Visualizer Emulator(Slow but works)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user