micropython-lib/micropython/lora/examples/simple_rxtx
Christian Clauss 4da6e6f1b2 all: Lint Python code with ruff.
Signed-off-by: Christian Clauss <cclauss@me.com>
2023-07-24 07:51:33 +02:00
..
README.md
simple_rxtx.py
simple_rxtx_async.py

README.md

LoRa Simple RX/TX Example

Source Files

  • simple_rxtx.py is a very simple implementation of a program to alternately receive and send LoRa packets.
  • simple_rxtx_async.py is the same program implemented using async Python.

Running the examples

One way to run this example interactively:

  1. Install or "freeze in" the necessary lora modem driver package (lora-sx127x or lora-sx126x) and optionally the lora-async package if using the async examples (see main lora README.md in the above directory for details).
  2. Edit the program you plan to run and fill in the get_modem() function with the correct modem type, pin assignments, etc. for your board (see top-level README).
  3. Change to this directory in a terminal.
  4. Run mpremote run simple_rxtx.py or mpremote run simple_rxtx_async.py as applicable.

Consult the mpremote documentation for an explanation of these commands and the options needed to run two copies of mpremote on different serial ports at the same time.