This repository contains examples for the Raspberry Pi Pico 2 (RP2350) board, written in Rust using the Embassy async framework.
Project generated
cargo generate --git https://github.com/ImplFerris/pico2-template.git --name rust-rpico2-embassy-examples
Hardware
Board: Raspberry Pi Pico 2
MCU: RP2350 (Dual-core Arm Cortex-M33 and RISC-V cores)
On-board peripherals: LED on GPIO25
Pinout
Common Pin Assignments
I2C pins: I2C0 SDA: GPIO4
I2C0 SCL: GPIO5
I2C1 SDA: GPIO2
I2C1 SCL: GPIO3
UART pins: UART0 TX: GPIO0, UART0 RX: GPIO1
UART1 TX: GPIO8, UART1 RX: GPIO9
Examples
I2C Examples
hs3003_i2c
Reads temperature and humidity from an HS3003 sensor using the Embassy async framework.
cargo run --example hs3003_i2c
Wiring (Arduino Modulino Thermo):
RPi Pico 2 ---------- -------------- GND (black) -> GND VCC (red) -> 3.3V SCL (yellow)-> GPIO5 (Pin 7) (I2C0 SCL) SDA (blue) -> GPIO4 (Pin 6) (I2C0 SDA)"> Modulino -> RPi Pico 2 ---------- -------------- GND (black) -> GND VCC (red) -> 3.3V SCL…