Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 522bfe7

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

File tree

3 files changed

+5
-6
lines changed
Filter options

3 files changed

+5
-6
lines changed

‎Cargo.lock

Copy file name to clipboardExpand all lines: Cargo.lock
+3-3Lines 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

Copy file name to clipboardExpand all lines: Cargo.toml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ version = "0.1.0"
44
authors = ["creativcoder <creativcoders@gmail.com>"]
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

Copy file name to clipboardExpand all lines: src/main.rs
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.