Skip to content

Commit

Permalink
Remove manual nightly install from README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Burrer authored and Rahix committed Jul 2, 2021
1 parent 4173e6e commit ce52c90
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,19 @@ avr-hal ![Continuous Integration](https://github.com/Rahix/avr-hal/workflows/Con
- [Supported Boards](#supported-boards)

## Quickstart
You need a nightly Rust compiler for compiling Rust code for AVR. **Note**: Due to a regression, versions after `nightly-2021-01-07` are currently broken (see [#124](https://github.com/Rahix/avr-hal/issues/124)). Please use that version of the compiler for now. You can install it using

```bash
rustup toolchain install nightly-2021-01-07
```
You need a nightly Rust compiler for compiling Rust code for AVR. **Note**: Due to a regression, versions after `nightly-2021-01-07` are currently broken (see [#124](https://github.com/Rahix/avr-hal/issues/124)).

Go into `./boards/arduino-uno` (or the directory for whatever board you want), and run the following commands:

```bash
cd boards/arduino-uno

# Now you are ready to build your first avr blink example!
cargo +nightly-2021-01-07 build --example uno-blink
cargo build --example uno-blink

# For some boards, you can even run it directly (this will attempt to flash it
# onto a connected board):
cargo +nightly-2021-01-07 run --example uno-blink
cargo run --example uno-blink

# For others, you can find the binary file in
ls ../../target/avr-atmega328p/debug/examples/uno-blink.elf
Expand Down

0 comments on commit ce52c90

Please sign in to comment.