Libraries to control GPIOs using the sysfs interface
Project description
gpio-sysfs
Libraries to control GPIOs using the sysfs interface
Compatibility
Now comptatible with all versions of Python !
Install
pip install onion-gpio-sysfs
Usage
import onionGpio
# instantiate a GPIO object
gpio0 = onionGpio.OnionGpio(0)
# set to output direction with zero (LOW) being the default value
gpio0.setOutputDirection(0)
# get the vaule
gpio0.getValue()
For further examples look at python/examples/ folder.
Author
Written by https://github.com/greenbreakfast
Python3 code adaptation by https://github.com/jdupl
PyPi package by https://github.com/grizmin
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onion_gpio_sysfs-0.1.5.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for onion_gpio_sysfs-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf2e3493bfbc06562d433e675c4f5e0048d43eb798d29a50b7a19c21b310956 |
|
MD5 | bb7a1f366375e36ede2f1ee3a9143f3c |
|
BLAKE2b-256 | d4e2bfe30fe9025edb0d14d90b1af1ff8ba85e163b6b35e77aeeab14456a53bb |