diff options
| author | Jan Niehusmann <[email protected]> | 2022-09-06 21:06:47 +0000 |
|---|---|---|
| committer | Jan Niehusmann <[email protected]> | 2022-09-06 21:08:04 +0000 |
| commit | ea0738c4851cbeb87de0d40ce1e8246368db4c6b (patch) | |
| tree | 3eeb5843292bb0a26931ade51ad4d54d9696d6d7 /examples | |
| parent | 29145e5f92918f5f6e575e5ccee159c0160c6694 (diff) | |
Add gpio_set
Example: Blink LED
```
loop {
info!("on");
control.gpio_set(0, true).await;
Timer::after(Duration::from_millis(200)).await;
info!("off");
control.gpio_set(0, false).await;
Timer::after(Duration::from_millis(200)).await;
}
```
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
