mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 08:51:43 +01:00
35 lines
681 B
YAML
35 lines
681 B
YAML
spi:
|
|
- id: spi_max7219digit
|
|
clk_pin: 14
|
|
mosi_pin: 13
|
|
miso_pin: 12
|
|
|
|
display:
|
|
- platform: max7219digit
|
|
cs_pin: 15
|
|
num_chips: 4
|
|
rotate_chip: 0
|
|
intensity: 10
|
|
scroll_mode: STOP
|
|
id: my_matrix
|
|
lambda: |-
|
|
it.printdigit("hello");
|
|
|
|
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
|