Function gpio_rust::is_installed [−][src]
pub fn is_installed() -> bool
Expand description
Returns a boolean value to indicate if the correct Raspberry PI GPIO libraries have been installed. This crate will not work is the libraries are not installed. The libraries do not come with this crate and need to be installed separately.
To install on your Raspberry PI, run:
sudo apt-get update && sudo apt-get install rpi.gpio
Here is an example:
assert!(is_installed());