This repository contains the code used in these in Towards Data Science articles:
-
Nine Pico PIO Wats with Rust, Part 1 & Part 2 (forthcoming)
It uses the PIO features of the Raspberry Pi Pico to generate sound and handle input from an ultrasonic rangefinder. The examples include a backup beeper, a melody player, and a theremin-like instrument.
To run the various MicroPython examples, edit the main.py
. See the article for some details on getting the code onto the Pico.
To run the various Rust examples, use the following commands:
cargo run --example backup_demo
cargo run --example sound_demo
cargo run --example distance_demo
cargo run --example distance_debug
cargo run --example theremin
cargo run --example theremin_no_pio --release
See the article for some details on getting the code onto the Pico.
This project is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.