Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
db032606
Commit
db032606
authored
Feb 13, 2022
by
Eric Duminil
Browse files
Rainbow wheel for wifi connection, magenta KITT for AP
parent
ade43786
Pipeline
#5805
passed with stage
in 2 minutes and 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/wifi_util.cpp
View file @
db032606
...
...
@@ -20,9 +20,16 @@ namespace wifi {
}
void
tryConnection
()
{
for
(
int
i
=
0
;
i
<=
30
&&
!
connected
();
i
++
)
{
led_effects
::
showRainbowWheel
();
//TODO: configurable timeout
for
(
int
i
=
0
;
i
<=
30
;
i
++
)
{
web_config
::
update
();
if
(
connected
())
{
break
;
}
else
if
(
WiFi
.
status
()
==
WL_NO_SHIELD
)
{
// Access point, apparently
led_effects
::
showKITTWheel
(
0xFF0015
,
1
);
}
else
{
led_effects
::
showRainbowWheel
();
}
Serial
.
print
(
"."
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment