File tree Expand file tree Collapse file tree
CircuitPython_Day_2024_Projects/Feather_ReverseTFT_IO_Countdown Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525# The time of the thing!
2626EVENT_YEAR = 2024
2727EVENT_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
3232event_time = time .struct_time ((EVENT_YEAR , EVENT_MONTH , EVENT_DAY ,
3333 EVENT_HOUR , EVENT_MINUTE , 0 , # we don't track seconds
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!" )
You can’t perform that action at this time.
0 commit comments