File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
CircuitPython_Day_2024_Projects/Feather_ReverseTFT_IO_Countdown Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 25
25
# The time of the thing!
26
26
EVENT_YEAR = 2024
27
27
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
31
31
# we'll make a python-friendly structure
32
32
event_time = time .struct_time ((EVENT_YEAR , EVENT_MONTH , EVENT_DAY ,
33
33
EVENT_HOUR , EVENT_MINUTE , 0 , # we don't track seconds
95
95
finished = True
96
96
if not first_run and days_remaining == 0 :
97
97
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
101
103
print ("Launch the snakes!" )
102
104
triggered = True
103
105
io .send_data ("cpday-countdown" , "Launch the snakes!" )
You can’t perform that action at this time.
0 commit comments