Skip to content

hqnicolas/VCCGND-YD-RP2040

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Board Overview

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

🚀 Quickstart

#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:

Add the crate:

[dependencies]
vcc-gnd-yd-rp2040 = "0.6.0"

Blink Example

// 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

🔌 Flashing Methods

A. UF2 Bootloader

  1. Hold BOOT, tap RESET, then release BOOT.
  2. Board appears as USB drive.
  3. Run:
cargo install elf2uf2-rs --locked
# .cargo/config.toml
[target.thumbv6m-none-eabi]
runner = "elf2uf2-rs -d"
  1. Upload firmware:
cargo run --release --example yd_rp2040_blinky

B. probe-rs (JTAG/SWD)

Pinout

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

C. picotool

Rename .elf file if needed:

cp target/.../example.elf
picotool load example.elf

🌈 Available Examples

Example Description
yd_rp2040_blinky Blink onboard blue LED
yd_rp2040_neopixel_rainbow Rainbow animation on RGB LED

📸 Hardware Images

RGB LED & Button Board Diagram
Image2 Image4

📚 Docs


MIT OR Apache-2.0 • CrateRepo

About

Rust for RP2040 YD board

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published