mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-07-28 04:05:53 +00:00
Extend RF433 slots from 10 to 16
Adds Signal 10-15 to the RF Signal Slot dropdown and the matching NVS index mapping (20-25), continuing the existing 10-19 offset scheme so RF slots stay disjoint from IR slots (0-9). IR slot count is unchanged.
This commit is contained in:
+13
-1
@@ -89,7 +89,7 @@ globals:
|
|||||||
type: bool
|
type: bool
|
||||||
restore_value: no
|
restore_value: no
|
||||||
initial_value: 'false'
|
initial_value: 'false'
|
||||||
# RF433 slot index, offset to 10-19 so it never collides with IR slots 0-9
|
# RF433 slot index, offset to 10-25 so it never collides with IR slots 0-9
|
||||||
- id: rf_signal_select_index
|
- id: rf_signal_select_index
|
||||||
type: int
|
type: int
|
||||||
restore_value: yes
|
restore_value: yes
|
||||||
@@ -488,6 +488,12 @@ select:
|
|||||||
- "Signal 7"
|
- "Signal 7"
|
||||||
- "Signal 8"
|
- "Signal 8"
|
||||||
- "Signal 9"
|
- "Signal 9"
|
||||||
|
- "Signal 10"
|
||||||
|
- "Signal 11"
|
||||||
|
- "Signal 12"
|
||||||
|
- "Signal 13"
|
||||||
|
- "Signal 14"
|
||||||
|
- "Signal 15"
|
||||||
initial_option: "Signal 0"
|
initial_option: "Signal 0"
|
||||||
on_value:
|
on_value:
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
@@ -501,6 +507,12 @@ select:
|
|||||||
else if (x == "Signal 7") id(rf_signal_select_index) = 17;
|
else if (x == "Signal 7") id(rf_signal_select_index) = 17;
|
||||||
else if (x == "Signal 8") id(rf_signal_select_index) = 18;
|
else if (x == "Signal 8") id(rf_signal_select_index) = 18;
|
||||||
else if (x == "Signal 9") id(rf_signal_select_index) = 19;
|
else if (x == "Signal 9") id(rf_signal_select_index) = 19;
|
||||||
|
else if (x == "Signal 10") id(rf_signal_select_index) = 20;
|
||||||
|
else if (x == "Signal 11") id(rf_signal_select_index) = 21;
|
||||||
|
else if (x == "Signal 12") id(rf_signal_select_index) = 22;
|
||||||
|
else if (x == "Signal 13") id(rf_signal_select_index) = 23;
|
||||||
|
else if (x == "Signal 14") id(rf_signal_select_index) = 24;
|
||||||
|
else if (x == "Signal 15") id(rf_signal_select_index) = 25;
|
||||||
ESP_LOGI("RF_LEARNING", "Selected slot: %d", id(rf_signal_select_index));
|
ESP_LOGI("RF_LEARNING", "Selected slot: %d", id(rf_signal_select_index));
|
||||||
|
|
||||||
# Script for sending raw IR signals
|
# Script for sending raw IR signals
|
||||||
|
|||||||
Reference in New Issue
Block a user