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.
write
even if a pin is an input pin.See LICENSE file.