宽带版:LoRa信道改为433.1~492.6MHz,步进500kHz,共120信道(信道0起始)
This commit is contained in:
@@ -95,7 +95,7 @@ class LaserTracingConfigApp:
|
|||||||
self._fc_display_to_value = {}
|
self._fc_display_to_value = {}
|
||||||
self._fc_value_to_display = {}
|
self._fc_value_to_display = {}
|
||||||
fc_displays = []
|
fc_displays = []
|
||||||
freq = 470100000
|
freq = 433100000
|
||||||
ch = 0
|
ch = 0
|
||||||
while freq <= 492600000:
|
while freq <= 492600000:
|
||||||
display = f"信道{ch}: {freq / 1000000:.1f}MHz"
|
display = f"信道{ch}: {freq / 1000000:.1f}MHz"
|
||||||
@@ -104,7 +104,7 @@ class LaserTracingConfigApp:
|
|||||||
self._fc_value_to_display[str(freq)] = display
|
self._fc_value_to_display[str(freq)] = display
|
||||||
freq += 500000
|
freq += 500000
|
||||||
ch += 1
|
ch += 1
|
||||||
self.lora_fc_display_var = tk.StringVar(value=self._fc_value_to_display.get("470100000", fc_displays[0] if fc_displays else ""))
|
self.lora_fc_display_var = tk.StringVar(value=self._fc_value_to_display.get("433100000", fc_displays[0] if fc_displays else ""))
|
||||||
self.lora_fc_combo = ttk.Combobox(lora_frame, textvariable=self.lora_fc_display_var,
|
self.lora_fc_combo = ttk.Combobox(lora_frame, textvariable=self.lora_fc_display_var,
|
||||||
values=fc_displays, width=20, state="readonly")
|
values=fc_displays, width=20, state="readonly")
|
||||||
self.lora_fc_combo.grid(row=0, column=1, padx=2)
|
self.lora_fc_combo.grid(row=0, column=1, padx=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user