Remove prints
This commit is contained in:
parent
9ad46a717a
commit
e7ca999711
1 changed files with 0 additions and 5 deletions
|
@ -106,8 +106,6 @@ class Light:
|
||||||
|
|
||||||
def on_message(self, client, userdata, message):
|
def on_message(self, client, userdata, message):
|
||||||
data = message.payload.decode()
|
data = message.payload.decode()
|
||||||
print(message.topic)
|
|
||||||
print(data)
|
|
||||||
|
|
||||||
match message.topic.rsplit("/", maxsplit=2):
|
match message.topic.rsplit("/", maxsplit=2):
|
||||||
case [self.base_topic, i, "command"]:
|
case [self.base_topic, i, "command"]:
|
||||||
|
@ -212,7 +210,6 @@ class Light:
|
||||||
self.timer.cancel()
|
self.timer.cancel()
|
||||||
|
|
||||||
pixels = self.to_pixels(self._pres[self._i])
|
pixels = self.to_pixels(self._pres[self._i])
|
||||||
print(pixels)
|
|
||||||
self.sense.set_pixels(pixels)
|
self.sense.set_pixels(pixels)
|
||||||
|
|
||||||
self.timer = Timer(0.25, self.display_value, kwargs=dict(timer=True))
|
self.timer = Timer(0.25, self.display_value, kwargs=dict(timer=True))
|
||||||
|
@ -238,10 +235,8 @@ class Light:
|
||||||
if event.action == ACTION_RELEASED:
|
if event.action == ACTION_RELEASED:
|
||||||
self._i = (self._i + 1) % self._n
|
self._i = (self._i + 1) % self._n
|
||||||
self.update_value()
|
self.update_value()
|
||||||
print(f"switch to {self._i}")
|
|
||||||
|
|
||||||
def switch_screen_rev(self, event):
|
def switch_screen_rev(self, event):
|
||||||
if event.action == ACTION_RELEASED:
|
if event.action == ACTION_RELEASED:
|
||||||
self._i = (self._i - 1) % self._n
|
self._i = (self._i - 1) % self._n
|
||||||
self.update_value()
|
self.update_value()
|
||||||
print(f"switch to {self._i}")
|
|
||||||
|
|
Loading…
Reference in a new issue