awawa-dev / HyperSerialPico

High-speed Adalight USB serial LED driver implementation for Raspberry Pi Pico RP2040. Support for sk6812/ws2812b/apa102 and others using Rpi multi-core, DMA, PIO, SPI and parallel output.
MIT License
49 stars 81 forks source link

SPI with Adafruit ItsyBitsy RP2040? #25

Open satgit62 opened 1 month ago

satgit62 commented 1 month ago

Hello, Since the “Adafruit ItsyBitsy RP2040” is mentioned as a one lane output, would “HyperSerialPico_Spi.uf2” work on “Adafruit ItsyBitsy RP2040”, with the DATA on GPIO 3 and CLOCK on GPIO 2 with the SPI WS2801 LEDs? Or should I compile differently? Adafruit ItsyBitsy RP2040 pinout.pdf

awawa-dev commented 1 month ago

Hi Not sure, the sk9822/apa102 protocol is not quite the same as ws2801. But they are very similar and they are using similar speed. But GPIO2/3 does not have level shifter support on this board. HyperSerialPico doesnt depend on any external library to render LEDs and currently there is no option to compile it strictly for ws2801: this protocol is not implemented yet.

satgit62 commented 1 month ago

Thank you for the prompt reply. Okay, I was afraid that the LEDs would not use the same protocol. I know that GPIO 2 and 3 do not have level converters.
I will test when I get a chance and see what comes up. Furthermore, I can quickly solder a level shifter in between and will report back if the WS2801 behave like the APA 102. It's worth a try.