Remove prints

This commit is contained in:
Edgar P. Burkhart 2024-11-11 16:50:14 +01:00
parent 9ad46a717a
commit e7ca999711
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -106,8 +106,6 @@ class Light:
def on_message(self, client, userdata, message):
data = message.payload.decode()
print(message.topic)
print(data)
match message.topic.rsplit("/", maxsplit=2):
case [self.base_topic, i, "command"]:
@ -212,7 +210,6 @@ class Light:
self.timer.cancel()
pixels = self.to_pixels(self._pres[self._i])
print(pixels)
self.sense.set_pixels(pixels)
self.timer = Timer(0.25, self.display_value, kwargs=dict(timer=True))
@ -238,10 +235,8 @@ class Light:
if event.action == ACTION_RELEASED:
self._i = (self._i + 1) % self._n
self.update_value()
print(f"switch to {self._i}")
def switch_screen_rev(self, event):
if event.action == ACTION_RELEASED:
self._i = (self._i - 1) % self._n
self.update_value()
print(f"switch to {self._i}")