forked from andreeuuetoa/litsimaja
Add python led programs
This commit is contained in:
11
pyleds/lib/LoopSwitch.py
Normal file
11
pyleds/lib/LoopSwitch.py
Normal file
@@ -0,0 +1,11 @@
|
||||
class LoopSwitch(object):
|
||||
_run: bool
|
||||
|
||||
def __init__(self):
|
||||
self._run = True
|
||||
|
||||
def stop(self):
|
||||
self._run = False
|
||||
|
||||
def status(self) -> bool:
|
||||
return self._run
|
||||
Reference in New Issue
Block a user