Skip to content

A small library to access GPIO pins the Trio way. Linux 4.9+ only.

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.APACHE2
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

python-trio/asyncgpio

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 <sgjava@gmail.com>, 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.

About

A small library to access GPIO pins the Trio way. Linux 4.9+ only.

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE.APACHE2
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •