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.6.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

moat_gpio-0.6.6-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for moat_gpio-0.6.6.tar.gz
Algorithm Hash digest
SHA256 042911876ca640244d7aacee2ce33ca94d9f9aa210dcdcfc1af6f8bd9d1a67b7
MD5 7e99c873f91f69e5ab2741c823d95343
BLAKE2b-256 525c6214ab5cff1993e5476da6cfb29c4a9e580ca1e7b7c3e553ff4cb3f7dafa

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for moat_gpio-0.6.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ad6362f429974acfdc8d47ee7f047ae51180a4de468b50ce671f966d1709d887
MD5 62245ce067addcc21da5b76ca00c7bab
BLAKE2b-256 24dd574f474aa087abf7685559a478bff96189c8e5e2a675c6db02973256d9f3

See more details on using hashes here.

Supported by

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