Skip to content

Commit d9eff38

Browse files
committed
Add example
1 parent 2b14a08 commit d9eff38

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ categories = ["embedded", "no-std", "hardware-support"]
1212

1313
[dependencies]
1414
avr-config = "1.0"
15+
16+
[dev-dependencies]
17+
avr-std-stub = "1.0" # for examples

examples/milliseconds.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![no_std]
2+
#![no_main]
3+
4+
extern crate avr_std_stub;
5+
6+
#[no_mangle]
7+
fn main() {
8+
avr_delay::delay_ms(4500);
9+
}

0 commit comments

Comments
 (0)