VCC-GND YD-RP2040 Board Support Crate
This crate provides board support for the YD-RP2040, a compact RP2040 board from VCC-GND Studio with:
- ✅ USB-C connector
- ✅ Onboard blue LED (GPIO25)
- ✅ WS2812 RGB LED (GPIO23)
- ✅ User button (GPIO24)
- ✅ Reset button & PWR LED
- ✅ Flash sizes: 4MB / 8MB / 16MB
#Install -Run the following Cargo command in your project directory:
cargo add vcc-gnd-yd-rp2040
Or add the following line to your Cargo.toml:
[dependencies]
vcc-gnd-yd-rp2040 = "0.6.0"
// boards/vcc-gnd-yd-rp2040/examples/yd_rp2040_blinky.rs
loop {
led_pin.set_high().unwrap();
delay.delay_ms(500);
led_pin.set_low().unwrap();
delay.delay_ms(500);
}
Run it:
cargo run --release --example yd_rp2040_blinky
- Hold BOOT, tap RESET, then release BOOT.
- Board appears as USB drive.
- Run:
cargo install elf2uf2-rs --locked
# .cargo/config.toml
[target.thumbv6m-none-eabi]
runner = "elf2uf2-rs -d"
- Upload firmware:
cargo run --release --example yd_rp2040_blinky
cargo install --locked probe-rs-tools
# .cargo/config.toml
[target.thumbv6m-none-eabi]
runner = "probe-rs run --chip RP2040"
Connect debug probe and run:
cargo run --release --example yd_rp2040_blinky
Rename .elf
file if needed:
cp target/.../example.elf
picotool load example.elf
Example | Description |
---|---|
yd_rp2040_blinky |
Blink onboard blue LED |
yd_rp2040_neopixel_rainbow |
Rainbow animation on RGB LED |
RGB LED & Button | Board Diagram |
---|---|
![]() |
![]() |