1
0
mirror of https://github.com/esphome/esphome.git synced 2024-12-25 17:07:50 +01:00
esphome/tests/components/matrix_keypad/test.esp8266-ard.yaml
Samuel Sieb d9d368d38e
add on_key trigger to matrix_keypad ()
Co-authored-by: Samuel Sieb <samuel@sieb.net>
2024-11-26 13:21:47 +13:00

16 lines
244 B
YAML

packages:
common: !include common.yaml
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true
on_key:
- lambda: ESP_LOGI("KEY", "key %d pressed", x);