Skip to content

Commit

Permalink
vinscant: attempt to improve leddy stability
Browse files Browse the repository at this point in the history
  • Loading branch information
Reavershark committed Oct 17, 2024
1 parent f5f4c2f commit 2fc51c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vinscant/mpfiles/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ def good(self, name=None):
self.led.setColor(*StatusNotifier.colors[2])
self.buzzer.start(500)
Timer(0).init(period=500, mode=Timer.ONE_SHOT, callback=self.gotoSleep)
if name:
leddy.setText(f"Welkom {name}!")
mqtt = Mqtt()
mqtt.blink()
mqtt.close()
if name:
leddy.setText(f"Welkom {name}!")

def error(self):
self.led.setColor(*StatusNotifier.colors[0])
Expand All @@ -104,11 +104,11 @@ def _post(self, command: str):

def setText(self, text: str):
watchdog.feed()
self._post(f"Option autoResetMs {5 * 1000}")
self._post(f"ScrollingText {text}")
watchdog.feed()
time.sleep(1)
time.sleep(3)
watchdog.feed()
self._post(f"ScrollingText {text}")
self._post(f"Option autoResetMs {5 * 1000}")
watchdog.feed()

class Mqtt:
Expand Down

0 comments on commit 2fc51c7

Please sign in to comment.