Struct wiringpi::WiringPi
[−]
[src]
pub struct WiringPi<Pin>(_);
Methods
impl<P: Pin> WiringPi<P>
[src]
pub fn input_pin(&self, pin: u16) -> InputPin<P>
[src]
pub fn output_pin(&self, pin: u16) -> OutputPin<P>
[src]
pub fn millis(&self) -> u32
[src]
This returns a number representing the number if milliseconds since your program called one of the setup functions.
It returns an unsigned 32-bit number which wraps after 49 days.
pub fn micros(&self) -> u32
[src]
This returns a number representing the number if microseconds since your program called one of the setup functions.
It returns an unsigned 32-bit number which wraps after 71 minutes.
pub fn digital_write_byte(&self, byte: u8)
[src]
This writes the 8-bit byte supplied to the first 8 GPIO pins. It’s the fastest way to set all 8 bits at once to a particular value, although it still takes two write operations to the Pi’s GPIO hardware.