{"repo":"Rahix/avr-hal","free":true,"listed":false,"github":"https://github.com/Rahix/avr-hal","clone":"git clone https://github.com/Rahix/avr-hal.git","description":"embedded-hal abstractions for AVR microcontrollers","language":"Rust","stars":1633,"topics":["rust-embedd","rust","arduino","avr","hal-crates"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"avr-hal [ ][arduino-hal docs] [ ][atmega-hal docs] [ ][attiny-hal docs] ======= Hardware Abstraction Layer for AVR microcontrollers and common boards (for example Arduino). Based on the avr-device crate. Quickstart You need a nightly Rust compiler for compiling Rust code for AVR. The correct version will be installed automatically thanks to the rust-toolchain.toml file. Install dependencies: - Ubuntu - Macos - Windows Use winget on Windows 10 & Windows 11: On older systems, you can use Scoop which you first have to install using PowerShell: Install avr-gcc and avrdude See Setting up environment for more information. Next, install \"ravedude\", a tool that seamlessly integrates flashing your board into the usual cargo workflow: Go into ./examples/arduino-uno (or the directory for whatever board you want), and run the following commands: Starting your own project The best way to start your own project is via the avr-hal-template which you can easily use with cargo-generate : Repository Structure The avr-hal repository is a workspace containing all components making up the HAL. Here is an overview: arduino-hal [ ][arduino-hal docs] arduino-hal is the batteries-included HAL for all Arduino & similar boards. This is what you probably want to use for your projects. It is intentionally built to abstract away the differences between boards as much as possible. examples/ The examples directory contains lots of examples for common hardware. Do note that not all examples were ported to al","default_branch":null,"files":null,"tree":[],"storefront":"/r/Rahix","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Rahix/avr-hal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}