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