Skip to main content

Easy async access to GPIO pins

Project description

MoaT-GPIO 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 MoaT-GPIO 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.

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

moat-gpio-0.6.5.tar.gz (27.3 kB view hashes)

Uploaded Source

Built Distribution

moat_gpio-0.6.5-py3-none-any.whl (14.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page