jgarff / rpi_ws281x

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

Add Support for Bananapi m2-berry #537

Open mrbocao opened 5 months ago

mrbocao commented 5 months ago

It´s possible to add support for BananaPI M2-Berry, since the GPIO of the Banana Pi M2 Berry is declared compatible with the Raspberry Pi3 ?

jgarff commented 5 months ago

Sorry, but it's not very likely. The problem isn't the GPIOs. The project doesn't actually use GPIO functionality since bit banging the protocol with Linux isn't accurate enough from a timing perspective. GPIO requires that each bit is handled by software, and there's way too much timing jitter in a multi-tasking OS. That's why the project uses PWM, PCM, SPI, with DMA, and not GPIO. That's how the bits are clocked out to the LEDs accurately enough to work error free.

On Fri, Apr 26, 2024 at 11:37 PM mrbocao @.***> wrote:

It´s possible to add support for BananaPI M2-Berry, since the GPIO of the Banana Pi M2 Berry is declared compatible with the Raspberry Pi3 ?

— Reply to this email directly, view it on GitHub https://github.com/jgarff/rpi_ws281x/issues/537, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACB55G24V2WDOPMTB3UVAJ3Y7M2TNAVCNFSM6AAAAABG3Z5EPGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DMOBVGE2TSNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>