Crates.io | c2-mmap-gpio |
lib.rs | c2-mmap-gpio |
version | 0.2.1 |
source | src |
created_at | 2020-09-21 15:30:30.79138 |
updated_at | 2020-10-29 01:45:42.241878 |
description | ODROID-C2 bindings for GPIO using memory-mapping |
homepage | |
repository | https://github.com/Killavus/c2-mmap-gpio |
max_upload_size | |
id | 291198 |
size | 31,298 |
This project provides a way to interact with ODROID-C2 GPIO pins directly through memory mapped GPIO registers.
This library provides a direct access to GPIO pins - bypassing sysfs layer (which is used by sysfs-gpio crate, for example) to make accesses faster.
I needed this capability while interacting with DHT11 thermal sensor because it was hard to implement its protocol with speeds provided by sysfs-gpio
.
This is propably not because sysfs
by itself is slow - but sysfs-gpio
crate was reopening sysfs resources every call which unfortunately took too long.
Core idea of this library and implementation is basically a rewrite in Rust of wiringPi library forked for this device.
See LICENSE file.