mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-02-21 03:25:51 -08:00
Update python docs path.
This commit is contained in:
parent
319239104b
commit
458300c07a
|
@ -47,20 +47,20 @@ Now both devices can talk over the `gpio` channel.
|
||||||
|
|
||||||
## Doing GPIO operations
|
## Doing GPIO operations
|
||||||
|
|
||||||
You can programmatically do operations from your own python code by using the meshtastic `RemoteHardwareClient` class. See the [python API](https://meshtastic.github.io/Meshtastic-python) documentation for more details.
|
You can programmatically do operations from your own python code by using the meshtastic `RemoteHardwareClient` class. See the [python API](https://meshtastic.org/docs/software/python/python-installation) documentation for more details.
|
||||||
|
|
||||||
## Using GPIOs from the python CLI
|
## Using GPIOs from the python CLI
|
||||||
|
|
||||||
Writing a GPIO
|
Writing a GPIO
|
||||||
```bash title="Expected output"
|
```bash title="Expected output"
|
||||||
$ meshtastic --port /dev/ttyUSB0 --gpio-wrb 4 1 --dest \!28979058
|
$ meshtastic --port /dev/ttyUSB0 --gpio-wrb 4 1 --dest \!28979058
|
||||||
Connected to radio
|
Connected to radio
|
||||||
Writing GPIO mask 0x10 with value 0x10 to !28979058
|
Writing GPIO mask 0x10 with value 0x10 to !28979058
|
||||||
```
|
```
|
||||||
|
|
||||||
Reading a GPIO
|
Reading a GPIO
|
||||||
```bash title="Expected output"
|
```bash title="Expected output"
|
||||||
$ meshtastic --port /dev/ttyUSB0 --gpio-rd 0x10 --dest \!28979058
|
$ meshtastic --port /dev/ttyUSB0 --gpio-rd 0x10 --dest \!28979058
|
||||||
Connected to radio
|
Connected to radio
|
||||||
Reading GPIO mask 0x10 from !28979058
|
Reading GPIO mask 0x10 from !28979058
|
||||||
GPIO read response gpio_value=16
|
GPIO read response gpio_value=16
|
||||||
|
@ -68,7 +68,7 @@ GPIO read response gpio_value=16
|
||||||
|
|
||||||
Watching for GPIO changes:
|
Watching for GPIO changes:
|
||||||
```bash title="Expected output"
|
```bash title="Expected output"
|
||||||
$ meshtastic --port /dev/ttyUSB0 --gpio-watch 0x10 --dest \!28979058
|
$ meshtastic --port /dev/ttyUSB0 --gpio-watch 0x10 --dest \!28979058
|
||||||
Connected to radio
|
Connected to radio
|
||||||
Watching GPIO mask 0x10 from !28979058
|
Watching GPIO mask 0x10 from !28979058
|
||||||
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=16
|
Received RemoteHardware typ=GPIOS_CHANGED, gpio_value=16
|
||||||
|
|
|
@ -8,9 +8,9 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
This library provides a command line interface for Meshtastic nodes and provides an easy API for sending and receiving messages over mesh radios, in addition to changing user settings. Using the command line is currently the most powerful. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
|
This library provides a command line interface for Meshtastic nodes and provides an easy API for sending and receiving messages over mesh radios, in addition to changing user settings. Using the command line is currently the most powerful. Events are delivered using a publish-subscribe model, and you can subscribe to only the message types you are interested in.
|
||||||
|
|
||||||
[Full documentation](https://meshtastic.github.io/Meshtastic-python) for the library, including examples, is available.
|
[Full documentation](https://meshtastic.org/docs/software/python/python-installation) for the library, including examples, is available.
|
||||||
|
|
||||||
If you wish to view the code or contribute to development of the python library or the command line interface, please visit the Meshtastic python <a href="https://github.com/meshtastic/Meshtastic-python">GitHub page</a>.
|
If you wish to view the code or contribute to development of the python library or the command line interface, please visit the Meshtastic python <a href="https://meshtastic.org/docs/software/python/python-installation">GitHub page</a>.
|
||||||
|
|
||||||
Installation is easily done through the [Python package installer pip](https://pypi.org/project/meshtastic/):
|
Installation is easily done through the [Python package installer pip](https://pypi.org/project/meshtastic/):
|
||||||
:::note
|
:::note
|
||||||
|
|
Loading…
Reference in a new issue