jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.78k stars 622 forks source link

Support for Raspberry Pi 4 #363

Closed Gadgetoid closed 5 years ago

Gadgetoid commented 5 years ago

I haven't confirmed if this works on all RAM variants- I've a suspicion the Revision ID will change depending on which RAM part is installed, but I'm not 100% sure.

Otherwise- this PR adds support for the Pi 4 which includes a necessary change to swap out the Oscillator Frequency, which has changed from 19.2MHz to 54MHz.

This change has been tested with Unicorn HAT using 8x8 ws2812 LEDs in original DMA->PWM mode, but not any other variants or modes.