Struct rust_gpiozero::output_devices::LED
[−]
[src]
pub struct LED { /* fields omitted */ }
Represents a light emitting diode (LED)
Example
Connect LED as shown below, with cathode(short leg) connected to GND
Resistor LED
Pin 14 o--/\/\/---->|------o GND
extern crate rust_gpiozero; use rust_gpiozero::*; fn main() { let mut led = LED::new(14); led.blink(1,1); }
Methods
impl LED
[src]
Trait Implementations
impl Debug for LED
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more