technobly / VEXTREME

VEXTREME - Vectrex Multicart
GNU General Public License v3.0
62 stars 12 forks source link

Hardware STM32 SPI2 support for addressable LEDs #14

Open technobly opened 4 years ago

technobly commented 4 years ago

Feature

Currently the addressable LEDs are bit-banged with software SPI. Ideally we'd like to support HW SPI2 so that we can do fancy things like DMA control of the LEDs. To enable that, we'll likely have to shuffle some pins around.

Notes:

Alterac commented 4 years ago

What about changing the part your using for RGB Leds to something simpler (and easy to source from lcsc) like the WS2812B and then you can use only 1 Pin, say PB8 - SPI5_MOSI to control them?

technobly commented 4 years ago

Thanks for the idea @Alterac! WS2812B/13's are very timing dependent... so these would not be as flexible and resilient as Clock&Data IMO, which can be done very slowly if necessary. We have tons of pins available... so it's just an exercise of juggling resources at this point. WS2812B/13's are quite large as well. I do agree on the sourcing issue though... there must be an easier/cheaper place to get these LEDs from than Digi-Key.

Alterac commented 4 years ago

The PCB has lots of room, so i wouldnt be too worried about that, but 10 RGB leds is still quite extravigant imho, I think 4 would be more than enough (but whatever, i can just not solder on the rest, hah). But the point about clocking them is much easyier since you dont need to babysit the timing code.