File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change 16
16
- [ Signing out] ( #signing-out )
17
17
18
18
## LED indicator colors
19
- | | Color | Lamp mode |
20
- | --------------------------------------------------------| ------------------------| ---------------------------------------|
21
- | <img src =" indicators/dot-blue-pulse.svg " width =' 12 ' > | Blue pulsing | Bluetooth pairing mode |
22
- | <img src =" indicators/dot-blue.svg " width =' 12 ' > | Blue solid | Bluetooth connected |
23
- | <img src =" indicators/dot-amber-pulse.svg " width =' 12 ' > | Amber pulsing | Connecting to wifi |
24
- | <img src =" indicators/dot-amber.svg " width =' 12 ' > | Amber solid | Connected to wifi |
25
- | <img src =" indicators/dot-green-pulse.svg " width =' 12 ' > | Green pulsing | Connecting to server |
26
- | <img src =" indicators/dot-green.svg " width =' 12 ' > | Green solid | Successfully set up |
27
- | <img src =" indicators/dot-red.svg " width =' 12 ' > | Red solid | Error |
28
- | <img src =" indicators/dot-white-pulse.svg " width =' 12 ' > | White pulsing | Factory resetting or firmware update |
19
+ | | Color | Lamp mode |
20
+ | --------------------------------------------------------| ------------------------| -------------------------------------------------- |
21
+ | <img src =" indicators/dot-blue-pulse.svg " width =' 12 ' > | Blue pulsing | Bluetooth pairing mode |
22
+ | <img src =" indicators/dot-blue.svg " width =' 12 ' > | Blue solid | Bluetooth connected |
23
+ | <img src =" indicators/dot-amber-pulse.svg " width =' 12 ' > | Amber pulsing | Connecting to wifi |
24
+ | <img src =" indicators/dot-amber.svg " width =' 12 ' > | Amber solid | Connected to wifi |
25
+ | <img src =" indicators/dot-green-pulse.svg " width =' 12 ' > | Green pulsing | Connecting to server |
26
+ | <img src =" indicators/dot-green.svg " width =' 12 ' > | Green solid | Successfully set up |
27
+ | <img src =" indicators/dot-red.svg " width =' 12 ' > | Red solid | Error |
28
+ | <img src =" indicators/dot-white-pulse.svg " width =' 12 ' > | White pulsing | Factory resetting or installing firmware update |
29
29
30
30
31
31
Original file line number Diff line number Diff line change 1
1
import os , gc
2
2
from .httpclient import HttpClient
3
+ from app .led import pulse , set_gradient , get_color_gradient , rgb_to_hue
3
4
4
5
class OTAUpdater :
5
6
"""
@@ -77,6 +78,10 @@ def install_update_if_available(self) -> bool:
77
78
(current_version , latest_version ) = self ._check_for_new_version ()
78
79
if latest_version > current_version :
79
80
print ('Updating to version {}...' .format (latest_version ))
81
+ hue = rgb_to_hue (255 , 255 , 255 )
82
+ set_gradient (get_color_gradient (223 ))
83
+ pulse ()
84
+
80
85
self ._create_new_version_file (latest_version )
81
86
self ._download_new_version (latest_version )
82
87
self ._copy_secrets_file ()
You can’t perform that action at this time.
0 commit comments