Skip to content

vshymanskyy/lbm-micropython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 10, 2025
f833d7d · Jan 10, 2025

History

14 Commits
Jan 10, 2025
Jan 10, 2025
Oct 7, 2024
Oct 1, 2024
Oct 1, 2024
Jan 9, 2025
Oct 7, 2024

Repository files navigation

lbm-micropython

LoRa Basic Modem integration for MicroPython

Important

This is a Proof-of-Concept, not ready for actual use.

Running

Copy lbm.mpy to device:

mpremote cp lbm.mpy :

In MicroPython REPL:

import lbm
import asyncio

lora = lbm.LoRaWAN()

async def lora_task():
    while True:
        n = lora.poll()
        await asyncio.sleep_ms(n)

asyncio.run(asyncio.gather(
    lora_task(),
))

TODO

  • Fix build
  • Create basic module API
  • Attach LBM builtin driver to MicroPython machine.SPI / machine.Pin
  • Class A device
  • TBD: Attach LBM LoRaWAN stack to MicroPython LoRa drivers
  • Allow static .bss variables