Module gpio_rust::gpio [−][src]
Expand description
Contains all the basic, low-level functions used to control the Raspberry PI’s GPIO pins.
Functions
A stand-alone function used to cleanup the Raspberry PI. When a PI is cleaned up, all allocated resources will be freed up. It is important to turn off and cleanup any pins that are not being currently used. This will help to avoid shorting out you PI.
A stand-alone function used to turn off a specified GPIO pin that is already on. Once a pin is turned off, it will stop emitting any electrical current. If you attempt to turn off a pin that is already off then nothing will happen.
A stand-alone function used to turn on a specified GPIO pin on the Raspberry PI. Once a pin is turned on, it starts emitting an electrical current. If you attempt to turn on a pin that is already on then nothing will happen.