Skip to content

Commit 8b15c1a

Browse files
committed
Renamed update_leds to select_led to reflect better what it's doing
1 parent 70678ec commit 8b15c1a

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

firmware/common-manual-ams.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ esphome:
3737
- light.turn_off:
3838
id: neopixel_light
3939
- delay: 500ms
40-
- script.execute: update_leds
40+
- script.execute: select_led
4141
- if:
4242
condition:
4343
lambda: |-

firmware/conf.d/bambu_ams.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ script:
1313
} else {
1414
id(selected_slot) = (id(ams_number).state - 1) * 4 + id(slot_number).state;
1515
}
16-
- script.execute: update_leds
16+
- script.execute: select_led
1717

1818
number:
1919
- platform: template

firmware/conf.d/led-external.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,28 +39,15 @@ light:
3939
for (int i = 0; i < it.size(); ++i) {
4040
it[i] = color;
4141
}
42-
# - strobe:
43-
# name: "Data Upload"
44-
# colors:
45-
# - state: TRUE
46-
# brightness: 100%
47-
# duration: 50ms
48-
# red: 0%
49-
# green: 100%
50-
# blue: 0%
51-
# - state: FALSE
52-
# duration: 50ms
5342
script:
54-
- id: update_leds
43+
- id: select_led
5544
then:
5645
- lambda: |-
57-
// Clear all LEDs first
5846
for (int i = 0; i < 17; i++) {
5947
id(set_led_off).execute(i);
6048
}
61-
ESP_LOGD("LED", "LED index: %d", (int)id(selected_slot));
62-
//id(set_leds_off).execute();
6349
id(set_led_blue).execute(id(selected_slot));
50+
ESP_LOGD("LED", "LED index: %d", (int)id(selected_slot));
6451
- id: set_led_red
6552
parameters:
6653
led_number: int8_t

0 commit comments

Comments
 (0)