esphome/tests/components/max7219digit/test.esp32-c3-idf.yaml

36 lines
677 B
YAML
Raw Normal View History

spi:
- id: spi_max7219digit
clk_pin: 6
mosi_pin: 7
miso_pin: 5
display:
- platform: max7219digit
cs_pin: 8
num_chips: 4
rotate_chip: 0
intensity: 10
scroll_mode: STOP
id: my_matrix
lambda: |-
it.printdigit("hello");
2024-11-12 23:25:28 +01:00
binary_sensor:
- platform: gpio
pin: GPIO00
name: None
on_press:
then:
- MAX7219.invert_off: my_matrix
- MAX7219.invert_on: my_matrix
- MAX7219.turn_off: my_matrix
- MAX7219.turn_on: my_matrix
- MAX7219.reverse_off: my_matrix
- MAX7219.reverse_on: my_matrix
- MAX7219.intensity:
id: my_matrix
intensity: 4