File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
QT_Py/NeoPixel_Moon_Phase_Clock Expand file tree Collapse file tree 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():
9898 for i in range (5 , 18 ):
9999 pixels [i ] = ON
100100 pixels .show ()
101-
101+
102102def 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 ()
107107
108108def set_red_moon ():
109- pixels .fill (RED )
110- pixels .show ()
111-
109+ pixels .fill (RED )
110+ pixels .show ()
111+
112112# match functions with phases
113113phase_functions = {
114114 NEW_MOON : set_new_moon ,
@@ -141,8 +141,8 @@ def set_moon_phase(phase):
141141 phase_functions [i ]()
142142 print (f"Moon phase set to: { name } " )
143143 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
146146
147147# time keeping, fetches API every 6 hours
148148timer_clock = ticks_ms ()
You can’t perform that action at this time.
0 commit comments