Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display "Wifi connection failed" on screen after timeout #70

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improve code style
tti0 committed Jan 3, 2024
commit 107254919806ab66e9ec87b86c9f63e16b71992d
4 changes: 2 additions & 2 deletions firmware/PIMORONI_BADGER2040W/lib/badger2040.py
Original file line number Diff line number Diff line change
@@ -238,10 +238,10 @@ def status_handler(self, mode, status, ip):
self.display.set_pen(15)
self.display.clear()
self.display.set_pen(0)
if status == True:
if status:
self.display.text("Connected!", 10, 10, 300, 0.5)
self.display.text(ip, 10, 30, 300, 0.5)
elif status == False:
elif status is False:
self.display.text("WiFi connection failed", 10, 10, 300, 0.5)
else:
self.display.text("Connecting...", 10, 10, 300, 0.5)