File tree 1 file changed +10
-10
lines changed
QT_Py/NeoPixel_Moon_Phase_Clock
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,17 @@ def set_waning_crescent():
98
98
for i in range (5 , 18 ):
99
99
pixels [i ] = ON
100
100
pixels .show ()
101
-
101
+
102
102
def set_dark_moon ():
103
- pixels .fill (OFF )
104
- for i in range (9 ,14 ):
105
- pixels [i ] = ON
106
- pixels .show ()
103
+ pixels .fill (OFF )
104
+ for i in range (9 ,14 ):
105
+ pixels [i ] = ON
106
+ pixels .show ()
107
107
108
108
def set_red_moon ():
109
- pixels .fill (RED )
110
- pixels .show ()
111
-
109
+ pixels .fill (RED )
110
+ pixels .show ()
111
+
112
112
# match functions with phases
113
113
phase_functions = {
114
114
NEW_MOON : set_new_moon ,
@@ -141,8 +141,8 @@ def set_moon_phase(phase):
141
141
phase_functions [i ]()
142
142
print (f"Moon phase set to: { name } " )
143
143
if error_check == 0 :
144
- print ("ERROR" )
145
- set_red_moon () #error indicator if API responce is unexpected
144
+ print ("ERROR" )
145
+ set_red_moon () #error indicator if API responce is unexpected
146
146
147
147
# time keeping, fetches API every 6 hours
148
148
timer_clock = ticks_ms ()
You can’t perform that action at this time.
0 commit comments