[hub75] HUB75 display component (#11153)
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
This commit is contained in:
39
tests/components/hub75/test.esp32-idf.yaml
Normal file
39
tests/components/hub75/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
esp32:
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: my_hub75
|
||||
panel_width: 64
|
||||
panel_height: 32
|
||||
double_buffer: true
|
||||
brightness: 128
|
||||
r1_pin: GPIO25
|
||||
g1_pin: GPIO26
|
||||
b1_pin: GPIO27
|
||||
r2_pin: GPIO14
|
||||
g2_pin: GPIO12
|
||||
b2_pin: GPIO13
|
||||
a_pin: GPIO23
|
||||
b_pin: GPIO19
|
||||
c_pin: GPIO5
|
||||
d_pin: GPIO17
|
||||
e_pin: GPIO21
|
||||
lat_pin: GPIO4
|
||||
oe_pin: GPIO15
|
||||
clk_pin: GPIO16
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
26
tests/components/hub75/test.esp32-s3-idf-board.yaml
Normal file
26
tests/components/hub75/test.esp32-s3-idf-board.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: hub75_display_board
|
||||
board: adafruit-matrix-portal-s3
|
||||
panel_width: 64
|
||||
panel_height: 32
|
||||
double_buffer: true
|
||||
brightness: 128
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
39
tests/components/hub75/test.esp32-s3-idf.yaml
Normal file
39
tests/components/hub75/test.esp32-s3-idf.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
esp32:
|
||||
board: esp32-s3-devkitc-1
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
display:
|
||||
- platform: hub75
|
||||
id: my_hub75
|
||||
panel_width: 64
|
||||
panel_height: 32
|
||||
double_buffer: true
|
||||
brightness: 128
|
||||
r1_pin: GPIO42
|
||||
g1_pin: GPIO41
|
||||
b1_pin: GPIO40
|
||||
r2_pin: GPIO38
|
||||
g2_pin: GPIO39
|
||||
b2_pin: GPIO37
|
||||
a_pin: GPIO45
|
||||
b_pin: GPIO36
|
||||
c_pin: GPIO48
|
||||
d_pin: GPIO35
|
||||
e_pin: GPIO21
|
||||
lat_pin: GPIO47
|
||||
oe_pin: GPIO14
|
||||
clk_pin: GPIO2
|
||||
pages:
|
||||
- id: page1
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
- id: page2
|
||||
lambda: |-
|
||||
it.rectangle(0, 0, it.get_width(), it.get_height());
|
||||
on_page_change:
|
||||
from: page1
|
||||
to: page2
|
||||
then:
|
||||
lambda: |-
|
||||
ESP_LOGD("display", "1 -> 2");
|
||||
Reference in New Issue
Block a user