LoRa-Training/main_-lcd.py

18 lines
408 B
Python

from simplelora import sender, receiver
import led_test
import lora_pingpong
to_run = 0 # 0: ping-pong as responder | 1: ping-pong as initializer | 2: sender | 3: receiver
led_test.run() # run the led blink test (blink twice)
if to_run == 0:
lora_pingpong.run_wo_lcd_resp()
if to_run == 1:
lora_pingpong.run_wo_lcd_init()
elif to_run == 2:
sender.run()
elif to_run == 3:
receiver.run()