code.py
1 # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 """CircuitPython NeoPixel Blink Example for Slider Trinkey""" 6 import time 7 import board 8 import neopixel 9 10 pixel = neopixel.NeoPixel(board.NEOPIXEL, 2) 11 12 while True: 13 pixel.fill((255, 0, 0)) 14 time.sleep(0.5) 15 pixel.fill((0, 0, 0)) 16 time.sleep(0.5)