Skip to content
Snippets Groups Projects
Commit c679bcc5 authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Try neopixel_spi instead

parent f959bb8e
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,17 @@ Adafruit-PlatformDetect = ">=2.18.1"
Adafruit-PureIO = ">=1.1.7"
pyftdi = ">=0.40.0"
[[package]]
category = "main"
description = "CircuitPython bus device classes to manage bus sharing."
name = "adafruit-circuitpython-busdevice"
optional = false
python-versions = "*"
version = "5.0.1"
[package.dependencies]
Adafruit-Blinka = "*"
[[package]]
category = "main"
description = "CircuitPython library for NeoPixel LEDs."
......@@ -23,6 +34,19 @@ version = "6.0.0"
Adafruit-Blinka = "*"
adafruit-circuitpython-pypixelbuf = ">=2.0.0"
[[package]]
category = "main"
description = "SPI driven CircuitPython driver for neopixels."
name = "adafruit-circuitpython-neopixel-spi"
optional = false
python-versions = "*"
version = "0.9.0"
[package.dependencies]
Adafruit-Blinka = "*"
adafruit-circuitpython-busdevice = "*"
adafruit-circuitpython-pypixelbuf = "*"
[[package]]
category = "main"
description = "Pure python implementation of _pixelbuf for smaller boards."
......@@ -334,16 +358,22 @@ docs = ["sphinx", "jaraco.packaging (>=3.2)", "rst.linker (>=1.9)"]
testing = ["pytest (>=3.5,<3.7.3 || >3.7.3)", "pytest-checkdocs (>=1.2.3)", "pytest-flake8", "pytest-cov", "jaraco.test (>=3.2.0)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"]
[metadata]
content-hash = "5afa9da8df4d3a2921298baace6f9df3c251daa132b4e53b4866e9ebe79d2bc4"
content-hash = "c6b53ae239995ca220f28e903232b058531eec71377290584d73cd09a4f17d09"
python-versions = "^3.7"
[metadata.files]
adafruit-blinka = [
{file = "Adafruit-Blinka-5.9.0.tar.gz", hash = "sha256:d41ff57bb66886dc995e1405e758638c0b520ece1d0667924c7620e40f3f5391"},
]
adafruit-circuitpython-busdevice = [
{file = "adafruit-circuitpython-busdevice-5.0.1.tar.gz", hash = "sha256:8d686bcfe1311ed39470e06121cea41c9c5675d958d52c861f612761d9674d88"},
]
adafruit-circuitpython-neopixel = [
{file = "adafruit-circuitpython-neopixel-6.0.0.tar.gz", hash = "sha256:1a3752d31a69d57496be44cb35818442b328ec18488e3b7d8411c94802d86195"},
]
adafruit-circuitpython-neopixel-spi = [
{file = "adafruit-circuitpython-neopixel-spi-0.9.0.tar.gz", hash = "sha256:26dd55abeb04b97349dbee6ef1d8d3d2446f9cf657483da668ea5b4a6cad5538"},
]
adafruit-circuitpython-pypixelbuf = [
{file = "adafruit-circuitpython-pypixelbuf-2.2.0.tar.gz", hash = "sha256:68d1ecaddfeeb760d63379893b923718be3926c87275bc240aa4819ff038baea"},
]
......
......@@ -9,10 +9,10 @@ python = "^3.7"
requests = "^2.24.0"
toml = "^0.10.2"
rpi_ws281x = "^4.2.5"
adafruit-circuitpython-neopixel = "^6.0.0"
"RPi.GPIO" = "^0.7.0"
pyudev = "^0.22.0"
ioctl-opt = "^1.2.2"
adafruit-circuitpython-neopixel-spi = "^0.9.0"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
......
......@@ -11,7 +11,7 @@ import uuid
import socket
import re
import board
import neopixel
import neopixel_spi
import pyudev
import os
import ioctl_opt
......@@ -80,7 +80,7 @@ timeout = 5
verify_cert = true
"""
LEDS = neopixel.NeoPixel(board.D10, 1)
LEDS = neopixel_spi.NeoPixel_SPI(board.SPI(), 10)
# from input-event-codes.h
# type can be EV_SYN, EV_KEY or EV_MSC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment