-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.py
24 lines (19 loc) · 748 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This file runs at power-up. It and files in the /lib directory get added to a LittleFS filesystem and appended to the firmware
# Overide this file with any of your own code that you wish to run at power-up, or remove the file to not have anything run.
import time
from pimoroni_yukon import Yukon
"""
A program to show that Yukon is active, by flashing the onboard LEDs in sequence.
"""
# Create a Yukon object to begin using the board
yukon = Yukon()
# Loop forever, or until a stop command from Thonny or another IDE is received
while True:
yukon.set_led('A', True)
time.sleep(0.2)
yukon.set_led('B', True)
time.sleep(0.2)
yukon.set_led('A', False)
time.sleep(0.2)
yukon.set_led('B', False)
time.sleep(1.4)