diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-07-12 23:56:45 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-12 23:56:45 +0000 |
| commit | 7c8dffeb12d9bc9589583fa6c9fd69d8c927c5bb (patch) | |
| tree | cfd70f1d698277e98422185e3e7c73e596d6176c /docs | |
| parent | e4cacc3bb812c8870584c513020f0747146c860a (diff) | |
| parent | 53e40860c17b2525ad4a8d25d6d0aa7fe4da789b (diff) | |
Merge #863
863: Add more convenience GPIO functions r=Dirbaio a=chemicstry
This reduces boilerplate code from:
```rs
if config.pin_high {
pin.set_high()
} else {
pin.set_low()
}
```
to
```rs
pin.set_level(config.pin_high.into());
```
Co-authored-by: chemicstry <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
