Skip to content

Commit 0071dd5

Browse files
committed
Set date + Break conditional to please pylint
1 parent 88f2a58 commit 0071dd5

File tree

1 file changed

+8
-6
lines changed
  • CircuitPython_Day_2024_Projects/Feather_ReverseTFT_IO_Countdown

1 file changed

+8
-6
lines changed

CircuitPython_Day_2024_Projects/Feather_ReverseTFT_IO_Countdown/code.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
# The time of the thing!
2626
EVENT_YEAR = 2024
2727
EVENT_MONTH = 8
28-
EVENT_DAY = 6 # 16
29-
EVENT_HOUR = 13 # 0
30-
EVENT_MINUTE = 11 # 0
28+
EVENT_DAY = 16
29+
EVENT_HOUR = 0
30+
EVENT_MINUTE = 0
3131
# we'll make a python-friendly structure
3232
event_time = time.struct_time((EVENT_YEAR, EVENT_MONTH, EVENT_DAY,
3333
EVENT_HOUR, EVENT_MINUTE, 0, # we don't track seconds
@@ -95,9 +95,11 @@
9595
finished = True
9696
if not first_run and days_remaining == 0:
9797
scrolling_label.text = "It's CircuitPython Day 2024! The snakiest day of the year!"
98-
# Check for the moment of the event to trigger a NASA snake launch
99-
if not triggered and (hours_remaining==0 and mins_remaining == 0 and secs_remaining <= 0):
100-
# send a signal to an adafruit IO feed, maybe firing off an email or text message
98+
# Check for the moment of the event to trigger something (a NASA snake launch)
99+
if not triggered and (
100+
hours_remaining==0 and mins_remaining == 0 and secs_remaining <= 0
101+
):
102+
# send a signal to an adafruit IO feed, where an Action is listening
101103
print("Launch the snakes!")
102104
triggered = True
103105
io.send_data("cpday-countdown", "Launch the snakes!")

0 commit comments

Comments
 (0)