kopia lustrzana https://github.com/micropython/micropython-lib
|
…
|
||
|---|---|---|
| .. | ||
| README.md | ||
| simple_rxtx.py | ||
| simple_rxtx_async.py | ||
README.md
LoRa Simple RX/TX Example
Source Files
simple_rxtx.pyis a very simple implementation of a program to alternately receive and send LoRa packets.simple_rxtx_async.pyis the same program implemented using async Python.
Running the examples
One way to run this example interactively:
- Install or "freeze in" the necessary lora modem driver package (
lora-sx127xorlora-sx126x) and optionally thelora-asyncpackage if using the async examples (see main loraREADME.mdin the above directory for details). - 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). - Change to this directory in a terminal.
- Run
mpremote run simple_rxtx.pyormpremote run simple_rxtx_async.pyas 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.