https://github.com/python-trio/asyncgpio
A small library to access GPIO pins the Trio way. Linux 4.9+ only.
https://github.com/python-trio/asyncgpio
Last synced: 6 months ago
JSON representation
A small library to access GPIO pins the Trio way. Linux 4.9+ only.
- Host: GitHub
- URL: https://github.com/python-trio/asyncgpio
- Owner: python-trio
- License: other
- Created: 2018-03-07T22:05:11.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-05-23T10:31:11.000Z (7 months ago)
- Last Synced: 2025-06-28T09:21:28.743Z (6 months ago)
- Language: Python
- Size: 76.2 KB
- Stars: 10
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: newsfragments/.gitkeep
- License: LICENSE
Awesome Lists containing this project
README
asyncgpio
=========
AsyncGPIO allows easy access to the GPIO pins on your Raspberry Pi or
similar embedded computer.
It is based on libgpiod and its CFFI adapter by Steven P. Goldsmith
, as downloaded from
`github `_.
To run examples, make sure to install `trio` first.
Testing AsyncGPIO requires a Linux distribution that enables the mock-GPIO module.
As of mid-2020, Debian's kernel does not include this module, but Raspbian's does.
If you can compile your own kernel: the option is named CONFIG_GPIO_MOCKUP,
in Device Drivers / GPIO support / Memory mapped GPIO drivers / GPIO
Testing Driver.
Writing an actual test suite is TODO. There is a more elaborate test script
in `DistKV-GPIO `_.