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