Struct wiringpi::pin::OutputPin
[−]
[src]
pub struct OutputPin<Pin>(_, _);
Methods
impl<P: Pin> OutputPin<P>
[src]
pub fn new(pin: c_int) -> OutputPin<P>
[src]
pub fn number(&self) -> c_int
[src]
pub fn digital_write(&self, value: Value)
[src]
Writes the value High
or Low
(1 or 0) to the given pin which must have been previously set as an output.
pub fn analog_write(&self, value: u16)
[src]
This writes the given value to the supplied analog pin. You will need to register additional analog modules to enable this function for devices such as the Gertboard.