Skip to content

Embassy experiment program to explore the possibilities of Rust on the Raspberry Pi Pico.

License

Notifications You must be signed in to change notification settings

eilbek-research/embassy-experiments

Repository files navigation

Embassy Experiments

This project contains multiple Embassy experiment program to explore the possibilities on Raspberry Pi Pico.

TODOs

  • Use strictest clippy settings

Depencies

You need to have capnp and uv installed:

sudo dnf install capnproto
curl -LsSf https://astral.sh/uv/install.sh | sh

You might need to add yourself to the dialout group to access the serial port:

sudo usermod -aG dialout $USER

Running examples

There are different examples in src/bin, to run them, open the file and press F5.

To stop the debugger session, press Shift+F5

Programs

blinky.rs

The LED of the Pico blinks.

button.rs

Pushing the BOOTSEL button makes the LED blink.

usb_serial_echo.rs

The Pico will echo anything sent to it via its USB serial port.

Run serial_test.py to send and receive data from the serial port.

uv run --script serial_test.py

usb_serial_mario_statig.rs

This is an example integrating statig and using Mario Power Up state machine as an example

Run serial_test.py and send one of b, f, c or just Enter, the Pico will respond with the current state of Mario.

About

Embassy experiment program to explore the possibilities of Rust on the Raspberry Pi Pico.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published