Included the led_test into the two main.py
This commit is contained in:
parent
52834f0562
commit
8fee46c8f7
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user