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 f8e6484 commit dff43d8Copy full SHA for dff43d8
README.md
@@ -50,6 +50,7 @@ use std::time::Duration;
50
fn main() {
51
let my_led = Pin::new(127); // number depends on chip, etc.
52
my_led.with_exported(|| {
53
+ my_led.set_direction(Direction::Out).unwrap();
54
loop {
55
my_led.set_value(0).unwrap();
56
sleep(Duration::from_millis(200));
src/lib.rs
@@ -31,6 +31,7 @@
31
//! fn main() {
32
//! let my_led = Pin::new(127); // number depends on chip, etc.
33
//! my_led.with_exported(|| {
34
+//! my_led.set_direction(Direction::Out).unwrap();
35
//! loop {
36
//! my_led.set_value(0).unwrap();
37
//! sleep(Duration::from_millis(200));
0 commit comments