fix display
This commit is contained in:
parent
ee544b62ce
commit
506615f3a3
|
@ -12,7 +12,7 @@ __TOPIC_TEXT__ = ""
|
||||||
|
|
||||||
class Controller:
|
class Controller:
|
||||||
connected = False
|
connected = False
|
||||||
self.display = None
|
display = None
|
||||||
|
|
||||||
def __init__(self, base_topic, mqtt_host, mqtt_port = 1883):
|
def __init__(self, base_topic, mqtt_host, mqtt_port = 1883):
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ class Controller:
|
||||||
while run:
|
while run:
|
||||||
self.mqtt.loop()
|
self.mqtt.loop()
|
||||||
|
|
||||||
if self.display is not None:
|
if self.display is not None:
|
||||||
self.display.print(self.text[self.poscount])
|
self.display.print(self.text[self.poscount])
|
||||||
self.poscount += 1
|
self.poscount += 1
|
||||||
self.poscount %= len(self.text)
|
self.poscount %= len(self.text)
|
||||||
|
|
Loading…
Reference in New Issue