embassy-rp

Provide idiomatic Rust interfaces for RP2040 and RP2350 microcontroller peripherals.

2|Updated Dec 2, 2025
One-click install
npx skills add https://github.com/njfdev/ncssm_hpr_2025_payload --skill embassy-rp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: embassy-rp
Source: https://github.com/njfdev/ncssm_hpr_2025_payload/tree/main/.claude/skills/embassy-rp
Command: npx skills add https://github.com/njfdev/ncssm_hpr_2025_payload --skill embassy-rp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of working with Raspberry Pi RP2040 and RP2350 microcontrollers by providing safe and idiomatic Rust APIs, simplifying GPIO, SPI, I2C, UART, and peripheral management.

Core Features & Use Cases

  • Microcontroller Access: Offers Rust interfaces to GPIO, SPI, I2C, UART, PIO, and DMA for RP2040 and RP2350 microcontrollers.
  • Safe Rust API: Ensures thread-safe and panic-proof operations, enhancing code reliability.
  • Use Case: Ideal for developing applications that need precise control over peripherals on the RP2040 or RP2350, like building custom sensors or IoT devices.

Quick Start

Create an embassy-rp Skill with cargo: add embassy-rp --version=0.9 and start integrating it into your project.

Frequently Asked Questions about embassy-rp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely control Raspberry Pi RP2040 GPIO and SPI peripherals in Rust?

You can control Raspberry Pi RP2040 GPIO and SPI peripherals in Rust safely by using idiomatic interfaces that manage hardware functionalities without exposing unsafe code. This ensures thread-safe and panic-proof operations for microcontroller access.

What is the best way to manage RP2040 and RP2350 microcontroller peripherals in Rust?

The best way to manage RP2040 and RP2350 microcontroller peripherals in Rust is by using APIs designed for safe, efficient, and idiomatic access. This approach handles GPIO, SPI, I2C, UART, PIO, and DMA functionalities reliably.

Does this Rust interface support both RP2040 and RP2350 microcontrollers?

Yes, the Rust interface supports both RP2040 and RP2350 microcontrollers. It provides idiomatic APIs to manage GPIO, SPI, I2C, UART, PIO, and DMA functionalities across both platforms safely without exposing unsafe code.

How do I start integrating Raspberry Pi microcontroller interfaces into a Rust project?

To start integrating Raspberry Pi microcontroller interfaces into a Rust project, add the embassy-rp Skill with cargo using `add embassy-rp --version=0.9`. This allows you to begin safely managing RP2040 and RP2350 peripherals.

Can I use Rust for thread-safe and panic-proof operations on Raspberry Pi microcontrollers?

Yes, you can use Rust for thread-safe and panic-proof operations on Raspberry Pi microcontrollers. The API ensures safe and reliable peripheral management for RP2040 and RP2350 devices without exposing unsafe code.

Why should I use idiomatic Rust APIs for Raspberry Pi RP2040 peripheral management?

You should use idiomatic Rust APIs for Raspberry Pi RP2040 peripheral management because they simplify GPIO, SPI, I2C, UART, PIO, and DMA control. This approach ensures thread-safe, panic-proof operations without exposing unsafe code.