Struct wiringpi::pin::InputPin [] [src]

pub struct InputPin<Pin>(_, _);

Methods

impl<P: Pin> InputPin<P>
[src]

[src]

[src]

[src]

This function returns the value read at the given pin.

It will be High or Low (1 or 0) depending on the logic level at the pin.

[src]

This returns the value read on the supplied analog input pin. You will need to register additional analog modules to enable this function for devices such as the Gertboard, quick2Wire analog board, etc.

impl<P: Pin + RequiresRoot> InputPin<P>
[src]

[src]

This sets the pull-up or pull-down resistor mode on the given pin.

Unlike the Arduino, the BCM2835 has both pull-up an down internal resistors. The parameter pud should be; Off, (no pull up/down), Down (pull to ground) or Up (pull to 3.3v)

[src]

[src]

impl<P: Pin + Pwm> InputPin<P>
[src]

[src]

impl<P: Pin + GpioClock> InputPin<P>
[src]

[src]