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