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)
set falue to 0 (HIGH)
gpio0.setValue(1) gpio.getDirection() gpio.getValue()
Author
Originally 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.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for onion_gpio_sysfs-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0271477964168c721176225b1561746a2e687a2d5b5758750a796a588f68f86d |
|
MD5 | 6ef732a91e47cd31563739c94854968b |
|
BLAKE2b-256 | 41d585764d187a3748303489488f8af0e900a19be73fbe5b6d55261f19200f43 |