Trait rust_gpiozero::output_devices::OutputDeviceTrait
[−]
[src]
pub trait OutputDeviceTrait { fn pin(&self) -> Pin; fn on(&mut self) { ... } fn off(&mut self) { ... } fn toggle(&mut self) { ... } }
Required Methods
Provided Methods
fn on(&mut self)
Turns the device on.
fn off(&mut self)
Turns the device off.
fn toggle(&mut self)
Reverse the state of the device. If it's on, turn it off; if it's off, turn it on.
Implementors
impl OutputDeviceTrait for OutputDevice
impl OutputDeviceTrait for DigitalOutputDevice
impl OutputDeviceTrait for LED
impl OutputDeviceTrait for Buzzer