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.4.tar.gz (27.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.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file moat-gpio-0.6.4.tar.gz.

File metadata

  • Download URL: moat-gpio-0.6.4.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/65.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.9

File hashes

Hashes for moat-gpio-0.6.4.tar.gz
Algorithm Hash digest
SHA256 285fba19999eb6a9fee8d482ccb34bd8461132bfcaca43185107212433d41dd7
MD5 3eacea0643f08577b4b5d024eaa8cadb
BLAKE2b-256 f05f743e208158c209baf217a0f7f9c6edbfdceb82cd39ca8b627c18a7a4f48a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: moat_gpio-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/65.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.9

File hashes

Hashes for moat_gpio-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 519db391051ca90cba2da6014a5ad4e0cd6b56ec21ff5b8cdc7f8d4e71df8dd9
MD5 5b1824e6d28dc5535e7bc47ab7fc0956
BLAKE2b-256 c7f8ea52b3d94f1c95a4f0fade11abc022a3c96f1bf01a745a56f8d4dbfe531e

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