kopia lustrzana https://github.com/micropython/micropython-lib
![]() Signed-off-by: Christian Clauss <cclauss@me.com> |
||
---|---|---|
.. | ||
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:
- Install or "freeze in" the necessary lora modem driver package (
lora-sx127x
orlora-sx126x
) and optionally thelora-async
package if using the async examples (see main loraREADME.md
in 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.py
ormpremote 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.