Skip to content

Commit 522bfe7

Browse files
committed
Update as per blog and pin avr-hal to a specific commit hash
1 parent c679d5d commit 522bfe7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ version = "0.1.0"
44
authors = ["creativcoder <[email protected]>"]
55
edition = "2018"
66

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8-
97
[dependencies]
108
panic-halt = "0.2.0"
119

1210
[dependencies.arduino-uno]
1311
git = "https://github.com/Rahix/avr-hal"
12+
rev = "536c5d"
1413

1514
# Configure the build for minimal size
1615
[profile.dev]

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use arduino_uno::hal::port::portb::PB5;
99
use arduino_uno::hal::port::mode::Output;
1010

1111
fn stutter_blink(led: &mut PB5<Output>, times: usize) {
12-
(0..times).take(times).map(|i| i * 10).for_each(|i| {
12+
(0..times).map(|i| i * 10).for_each(|i| {
1313
led.toggle().void_unwrap();
1414
arduino_uno::delay_ms(i as u16);
1515
});

0 commit comments

Comments
 (0)