mirror of
https://github.com/nkbai/book.git
synced 2026-08-31 03:38:06 +08:00
Merge #227
227: Setting output to `high` needs a `true` argument r=therealprof a=Rosto75 See the comment in line 239. Co-authored-by: Tomasz Różański <rosto@tlen.pl>
This commit is contained in:
@@ -239,7 +239,7 @@ let pin_state = pulled_low.bit_is_set();
|
||||
* Example 3: Pulled Low input to Output, set high
|
||||
*/
|
||||
let output_pin = pulled_low.into_enabled_output();
|
||||
output_pin.set_bit(false);
|
||||
output_pin.set_bit(true);
|
||||
|
||||
// Can't do this, output pins don't have this interface!
|
||||
// output_pin.into_input_pull_down();
|
||||
|
||||
Reference in New Issue
Block a user