Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmckay committed Feb 1, 2021
1 parent 2b14a08 commit d9eff38
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ categories = ["embedded", "no-std", "hardware-support"]

[dependencies]
avr-config = "1.0"

[dev-dependencies]
avr-std-stub = "1.0" # for examples
9 changes: 9 additions & 0 deletions examples/milliseconds.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![no_std]
#![no_main]

extern crate avr_std_stub;

#[no_mangle]
fn main() {
avr_delay::delay_ms(4500);
}

0 comments on commit d9eff38

Please sign in to comment.