esphome/tests/components/matrix_keypad/test.esp32-c3-ard.yaml

16 lines
240 B
YAML
Raw Normal View History

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