kopia lustrzana https://github.com/micropython/micropython-lib
![]() Includes: - component oriented driver, to only install the parts that are needed - synchronous operation - async wrapper class for asynchronous operation - two examples with async & synchronous versions - documentation This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au> |
||
---|---|---|
.. | ||
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.