We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1261e43 commit 8f3bdc7Copy full SHA for 8f3bdc7
README.md
@@ -22,8 +22,12 @@ use rust_gpiozero::*;
22
fn main() {
23
// Create a new LED attached to Pin 17
24
let mut led = LED::new(17);
25
- // blink the LED
26
- led.blink(2.0, 3.0);
+
+ // on_time = 2 secs, off_time=3 secs
27
+ led.blink(2.0,3.0);
28
29
+ // prevent program from exiting immediately
30
+ led.wait();
31
}
32
33
```
examples/blink.rs
@@ -5,6 +5,10 @@ use rust_gpiozero::*;
5
6
7
8
9
10
11
12
13
14
0 commit comments