最終更新:2023-09-15 (金) 08:16:02 (13d)
rpi_ws281x
Top / rpi_ws281x
Userspace Raspberry Pi library for controlling WS281x LEDs.
https://github.com/jgarff/rpi_ws281x
バインディング
Python
Rust
PowerShell
Java
CSharp?
Go
出力
PWM
- PWM0, which can be set to use GPIOs 12, 18, 40, and 52.
- Only 12 (pin 32) and 18 (pin 12) are available on the B+/2B/3B
- PWM1 which can be set to use GPIOs 13, 19, 41, 45 and 53.
- Only 13 is available on the B+/2B/PiZero?/3B, on pin 33
- オンボードオーディオと競合する
blacklist snd_bcm2835
PCM
- PCM_DOUT, which can be set to use GPIOs 21 and 31.
- Only 21 is available on the B+/2B/PiZero?/3B, on pin 40.
- I2S を使用するデジタル オーディオ デバイスは使用できない
SPI
- SPI0-MOSI is available on GPIOs 10 and 38.
- Only GPIO 10 is available on all models.
- See also note for RPi 3 below.
- GPU コア周波数を 250 MHz に変更する必要があります。そうしないと、SPI クロックの周波数が間違ってしまいます。
- RPi 4 では、アイドル状態の CPU スケーリングによって SPI 周波数が変化し、ws281x タイミングが崩れることを避けるために、固定周波数を設定する必要があります。