Crate rust_pigpio [] [src]

Rust PiGPIO

The Rust wrapper of the C library functions

Modules

constants
pwm

Constants

INPUT
OFF
ON
OUTPUT

Functions

delay

Delays for at least the number of microseconds specified by microseconds.

get_mode

Gets the GPIO mode.

initialize

Initializes the library.

read

Reads the GPIO level, on or off.

set_mode

Sets the GPIO mode, typically input or output.

set_pull_up_down

Sets or clears resistor pull ups or downs on the GPIO.

terminate

Terminates the library.

write

Sets the GPIO level, on or off. If PWM or servo pulses are active on the GPIO they are switched off.

Type Definitions

GpioResponse
GpioResult