code.py
1 # SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries 2 # 3 # SPDX-License-Identifier: MIT 4 5 """ 6 NeoPixel example for Pico. Turns the NeoPixels red. 7 8 REQUIRED HARDWARE: 9 * RGB NeoPixel LEDs connected to pin GP0. 10 """ 11 import board 12 import neopixel 13 14 # Update this to match the number of NeoPixel LEDs connected to your board. 15 num_pixels = 30 16 17 pixels = neopixel.NeoPixel(board.GP0, num_pixels) 18 pixels.brightness = 0.5 19 20 while True: 21 pixels.fill((255, 0, 0))