mirror of
https://github.com/Crocmagnon/plant-badger.git
synced 2024-11-24 10:28:01 +01:00
Remove screen update when connecting to Wi-Fi #4
This commit is contained in:
parent
ef110abebd
commit
9697e29816
1 changed files with 2 additions and 10 deletions
|
@ -154,16 +154,8 @@ class Badger2040W:
|
||||||
row >>= 1
|
row >>= 1
|
||||||
|
|
||||||
def status_handler(self, mode, status, ip):
|
def status_handler(self, mode, status, ip):
|
||||||
print(mode, status, ip)
|
# Explicitly do not display anything when connecting to Wi-Fi.
|
||||||
self.display.set_pen(15)
|
pass
|
||||||
self.display.clear()
|
|
||||||
self.display.set_pen(0)
|
|
||||||
if status:
|
|
||||||
self.display.text("Connected!", 10, 10, 300, 0.5)
|
|
||||||
self.display.text(ip, 10, 30, 300, 0.5)
|
|
||||||
else:
|
|
||||||
self.display.text("Connecting...", 10, 10, 300, 0.5)
|
|
||||||
self.update()
|
|
||||||
|
|
||||||
def isconnected(self):
|
def isconnected(self):
|
||||||
return network.WLAN(network.STA_IF).isconnected()
|
return network.WLAN(network.STA_IF).isconnected()
|
||||||
|
|
Loading…
Reference in a new issue