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 <sgjava@gmail.com>, 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.7.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

moat_gpio-0.6.7-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file moat_gpio-0.6.7.tar.gz.

File metadata

  • Download URL: moat_gpio-0.6.7.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for moat_gpio-0.6.7.tar.gz
Algorithm Hash digest
SHA256 551e8cdf2c513d61fe3aac4ce524549e73e3012c3a3e057ec11f1618cda677d0
MD5 db3291434840c97f06bb0d7a35d8163f
BLAKE2b-256 a08ed233868182ad72cf60f9ccc72b7c2f29debd85a77235dc31483a97edd463

See more details on using hashes here.

File details

Details for the file moat_gpio-0.6.7-py3-none-any.whl.

File metadata

  • Download URL: moat_gpio-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for moat_gpio-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d34e9ff426330111fb407e3e4e9d6e813cd09c74b7299eb4075f21b60a1ca21a
MD5 f3927c9ebb13bba6ff3971f858ff1e89
BLAKE2b-256 c00bd82a09b51984f2c144bc5142eea20443eea3d0265a599d292d5a02de8497

See more details on using hashes here.

Supported by

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