This repository has been archived on 2026-08-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
donglora/examples/justfile
T
swaits 83a76d4b48 chore: update tooling (mise, justfile, examples)
Add mise.toml for tool version management, rename Justfile to justfile,
add examples/justfile for running Python examples, and update docs.
2026-03-31 17:31:47 -06:00

30 lines
932 B
Makefile

set shell := ["bash", "-c"]
# Receive LoRa packets (Ctrl-C to stop)
rx *args:
@mise install && uv run {{source_directory()}}/simple_rx.py {{args}}
# Transmit a single packet
tx *args:
@mise install && uv run {{source_directory()}}/simple_tx.py {{args}}
# Two-dongle ping-pong demo (--role tx|rx)
ping-pong *args:
@mise install && uv run {{source_directory()}}/ping_pong.py {{args}}
# Exercise all DongLoRa commands
test-commands *args:
@mise install && uv run {{source_directory()}}/all_commands.py {{args}}
# Two-way LoRa bridge over TCP
bridge *args:
@mise install && uv run {{source_directory()}}/lora_bridge.py {{args}}
# MeshCore packet decoder/monitor
meshcore *args:
@mise install && uv run {{source_directory()}}/meshcore/meshcore_rx.py {{args}}
# Run any example by name (e.g. just ex run simple_rx)
run script *args:
@mise install && uv run {{source_directory()}}/{{script}}.py {{args}}