Skip to content

Commit b2a98fe

Browse files
authored
Update code.py
fixing pylint error inconsistent use of tabs and spaces in indentation corrected by removing tabs and indenting with spaces
1 parent e05e3f9 commit b2a98fe

File tree

1 file changed

+10
-10
lines changed
  • QT_Py/NeoPixel_Moon_Phase_Clock

1 file changed

+10
-10
lines changed

QT_Py/NeoPixel_Moon_Phase_Clock/code.py

+10-10
Original file line numberDiff line numberDiff 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+
102102
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()
107107

108108
def set_red_moon():
109-
pixels.fill(RED)
110-
pixels.show()
111-
109+
pixels.fill(RED)
110+
pixels.show()
111+
112112
# match functions with phases
113113
phase_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
148148
timer_clock = ticks_ms()

0 commit comments

Comments
 (0)