Skip to content

Conversation

KunYi
Copy link

@KunYi KunYi commented Sep 24, 2025

Summary

This PR adds support for the Waveshare RP2040 Zero board and WS2812 LEDs.

Changes

  • Added board definition for Waveshare RP2040 Zero
  • Added WS2812 LED support
  • Enlarged USB string descriptor buffer (32 → 64) and replaced hardcoded limit with dynamic calculation

Motivation

The Waveshare RP2040 Zero is a compact and affordable board that is widely used.
Adding WS2812 support enables built-in RGB LED functionality, useful for status indication.
The USB descriptor change improves maintainability when handling longer strings.

Testing

  • Verified that the board builds successfully with cmake and make
  • Confirmed USB enumeration works with TinyUSB
  • Tested WS2812 LED output on Waveshare RP2040 Zero

Increased _desc_str size from 32 to 64 to allow longer USB string
descriptors. Replaced the fixed limit (31) with a value derived
from the buffer size for clarity and maintainability.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant