Git Product home page Git Product logo

rustberry-pi-pico's Introduction

Rustberry Pi Pico

This repo contains various programs I implemented in my new favourite programming language: Rust
and run on my new favourite toy runtime environment: Raspberry Pi Pico.

Description

The ultimate goal for this repo is to implement a keyboard firmware in Rust and run it on Raspberry Pi Pico,
but as I need to learn working with embedded rust first, I decided to put any projects I run on my Pico as a separate example crate in src/examples/{example-name}/example.rs. Those programs will probably include experimenting with different features of the Pico.

Getting Started

Prerequisites

First of all, you need a Raspberry Pi Pico board, along with soldering tools and whatever additional hardware you would like to work with the Pico board.

You need to have Rust installed on your machine. Once you do, you need to add correct build target to your Rust environment:

rustup target add thumbv6m-none-eabi

Then, you will need a tool that converts Rust compilation output into a binary executable by the Pico board:

cargo install elf2uf2-rs

Installation

Clone this repo with:

git clone https://github.com/radlinskii/rustberry-pi-pico.git

Then to try to compile one of the programs from src/examples directory, e.g.:

cargo build --release --example blink-on-board-led

If it compiles you are good to go.

Usage

To install chosen firmware to your Pico first you need to connect the board to your computer with USB cable while pressing the BOOTSEL button on the board.
This will put your Raspberry Pi Pico into USB mass storage device mode so will be ready to receive new firmware.

Next you can install new firmware on your board. To do that simply run one of the programs from src/examples folder with cargo run, e.g.:

cargo run --release --example --blink-on-board-led

That's it, in case of the example above you should see that the LED that is preinstalled on your board starts blinking.

License

This project is licensed under the MIT License - see the license file for details.

Acknowledgments

Programs I create, at least at the very beginning, will be inspired by examples directory from the awesome rp-hal-boards repo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.