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:
bors[bot]
2020-02-27 08:06:04 +00:00
committed by GitHub

View File

@@ -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();