[−][src]Trait lpc82x_hal::prelude::_embedded_hal_digital_OutputPin
Single digital push-pull output pin
Required methods
fn set_low(&mut self)
Drives the pin low
NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources
fn set_high(&mut self)
Drives the pin high
NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources
Implementors
impl<'gpio, T> OutputPin for Pin<T, Gpio<'gpio, Output>> where
T: PinTrait,
[src]
T: PinTrait,
fn set_high(&mut self)
[src]
Set the pin output to HIGH
This method is only available, if two conditions are met:
- The pin is in the GPIO state. Use
into_gpio_pin
to achieve this. - The pin direction is set to output. See
into_output
.
Unless both of these conditions are met, code trying to call this method will not compile.
fn set_low(&mut self)
[src]
Set the pin output to LOW
This method is only available, if two conditions are met:
- The pin is in the GPIO state. Use
into_gpio_pin
to achieve this. - The pin direction is set to output. See
into_output
.
Unless both of these conditions are met, code trying to call this method will not compile.