rsiot/components/cmp_raspberrypi_gpio/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//! Компонент для работы с GPIO Raspberry Pi
//!
//! Обертка над библиотекой [rppal](https://crates.io/crates/rppal)
//!
//! Запускать программу скорее всего нужно из-под sudo.
//!
//! [Распиновка](https://www.raspberrypi.com/documentation/computers/os.html#gpio-and-the-40-pin-header)

mod component;
mod config;
mod error;
mod fn_process;

#[cfg(test)]
mod test;

pub use component::Cmp;
pub use config::{Config, ConfigInput, ConfigOutput, PullMode};
pub use error::Error;

type Result<T> = std::result::Result<T, Error>;