-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Description
I tried the following samples:
1- native sample
import board
import neopixel_write
import digitalio
pin = digitalio.DigitalInOut(board.NEOPIXEL)
pin.direction = digitalio.Direction.OUTPUT
pixel_off = bytearray([128, 0, 0])
neopixel_write.neopixel_write(pin, pixel_off)
2- installing neopixel using:
$ circup --path /media/raul/CIRCUITPY/ install neopixel
and running
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
# SPDX-License-Identifier: MIT
"""CircuitPython status NeoPixel red, green, blue example."""
import time
import board
import neopixel
pixel = neopixel.NeoPixel(board.NEOPIXEL, 1)
pixel.brightness = 0.3
while True:
pixel.fill((255, 0, 0))
time.sleep(0.5)
pixel.fill((0, 255, 0))
time.sleep(0.5)
pixel.fill((0, 0, 255))
time.sleep(0.5)
Metadata
Metadata
Assignees
Labels
No labels