diff --git a/main_+lcd.py b/main_+lcd.py index e46a824..dc01ee4 100644 --- a/main_+lcd.py +++ b/main_+lcd.py @@ -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) diff --git a/main_-lcd.py b/main_-lcd.py index 364b15b..df781ea 100644 --- a/main_-lcd.py +++ b/main_-lcd.py @@ -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: