Included the led_test into the two main.py

This commit is contained in:
BlueFox 2024-03-16 14:50:31 +01:00
parent 52834f0562
commit 8fee46c8f7
2 changed files with 9 additions and 0 deletions

View File

@ -18,12 +18,17 @@ def lora_pingpong_resp():
import lora_pingpong
lora_pingpong.run_lcd_resp()
gc.collect()
def led_test_run():
import led_test
led_test.run() # run the led blink test (blink twice)
gc.collect()
programs = {
"simplereceiver": lora_receiver_run,
"simplesender": lora_sender_run,
"pingpong_init": lora_pingpong_init,
"pingpong_resp": lora_pingpong_resp,
"led_test": led_test_run,
}
pc = ProgramChooser(programs, 7, 8, debug=True)

View File

@ -1,8 +1,12 @@
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: