mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[hub75] Add set_brightness action (#12521)
This commit is contained in:
12
tests/components/hub75/common.yaml
Normal file
12
tests/components/hub75/common.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
# Test simple value
|
||||
- hub75.set_brightness: 200
|
||||
|
||||
# Test templatable value
|
||||
- hub75.set_brightness: !lambda 'return 100;'
|
||||
|
||||
# Test with explicit ID
|
||||
- hub75.set_brightness:
|
||||
id: my_hub75
|
||||
brightness: 50
|
||||
@@ -1,8 +1,3 @@
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: my_hub75
|
||||
@@ -37,3 +32,5 @@ display:
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: hub75_display_board
|
||||
@@ -24,3 +19,5 @@ display:
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: my_hub75
|
||||
@@ -37,3 +32,5 @@ display:
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
|
||||
<<: !include common.yaml
|
||||
|
||||
Reference in New Issue
Block a user