mirror of
https://github.com/esphome/esphome.git
synced 2024-12-30 01:11:44 +01:00
16 lines
244 B
YAML
16 lines
244 B
YAML
|
packages:
|
||
|
common: !include common.yaml
|
||
|
|
||
|
matrix_keypad:
|
||
|
id: keypad
|
||
|
rows:
|
||
|
- pin: 10
|
||
|
- pin: 11
|
||
|
columns:
|
||
|
- pin: 12
|
||
|
- pin: 13
|
||
|
keys: "1234"
|
||
|
has_pulldowns: true
|
||
|
on_key:
|
||
|
- lambda: ESP_LOGI("KEY", "key %d pressed", x);
|