Metadata-Version: 2.4
Name: moat-link-gpio
Version: 0.2.2
Summary: GPIO controller connector for MoaT-Link
Author-email: Matthias Urlichs <matthias@urlichs.de>
Project-URL: homepage, https://m-o-a-t.org
Project-URL: repository, https://github.com/M-o-a-T/moat
Keywords: MoaT
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Framework :: AsyncIO
Classifier: Framework :: Trio
Classifier: Framework :: AnyIO
Classifier: Development Status :: 4 - Beta
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: anyio~=4.2
Requires-Dist: asyncclick~=8.3
Requires-Dist: attrs
Requires-Dist: moat-util~=0.64.0
Requires-Dist: moat-link~=0.10.0
Requires-Dist: moat-lib-config~=0.2.0
Requires-Dist: moat-lib-gpio~=0.9.4
Dynamic: license-file

# GPIO controller connector

% start synopsis
Connects MoaT-Link to GPIO lines via the moat-lib-gpio library.
% end synopsis

% start main

This module bridges MoaT-Link values and GPIO controller lines, in both
directions.  It replaces the legacy ``moat-kv-gpio`` package.

## Quick start

1. Configure an input line (reads GPIO and publishes to a link path):

   ```shell
   moat link gpio port myhost 0 5 -t input -m read -a dest .sensors.button
   ```

2. Configure an output line (watches a link path and drives GPIO):

   ```shell
   moat link gpio port myhost 0 3 -t output -m write -a src .controls.lamp
   ```

3. Run the connector for a chip:

   ```shell
   moat link gpio monitor myhost 0
   ```

   The host name defaults to this machine's node name; omit the chip
   name(s) to monitor every chip configured for the host:

   ```shell
   moat link gpio monitor
   ```

## Deprecation

This package supersedes ``moat-kv-gpio``.  The address tree now lives in
MoaT-Link under the ``gpio`` prefix; lines are stored as integer line
numbers below host and chip entries.

% end main
