ataradov / free-dap

Free and open implementation of the CMSIS-DAP debugger firmware
BSD 3-Clause "New" or "Revised" License
259 stars 62 forks source link

Add support for using a ws2812 led for DAP_STATUS #34

Open badbunnyyy opened 6 months ago

badbunnyyy commented 6 months ago

Hi Alex,

thank you for your free-dap project. I use it with a RP2040-Zero, which has a ws2812 RGB led on pin 16 rather than the standard led on pin 25 (https://www.waveshare.com/wiki/RP2040-Zero).

I added support for blinking the ws2812 led. Would you be interested in adding this to your project? As far as I can tell it works and doesn't break anything.

There is a new option DAP_STATUS_USE_WS2812 to enable blinking both the standard led and the rgb led, so it should work on both standard and zero boards. If you disable this option, everything should be as before with just the standard led on pin 25 blinking.

A few notes:

Kind regards, Stefan

ataradov commented 6 months ago

The goal of this project is to provide a base for the CMSIS-DAP firmware. The actual projects are just minimal examples of how to use it. I don't want to add complicated things and support for all possible hardware here. This is something individual implementations should do on their own.

badbunnyyy commented 6 months ago

Thanks for the info. I can see your point. If there should ever be a list /collection of "unsupported user contributions" or something similar, feel free to link to or use my material.