mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 08:20:21 +00:00
[gpio] Fix linker error when binary sensor only uses expander pins
This commit is contained in:
@@ -3,6 +3,13 @@ binary_sensor:
|
||||
pin: ${binary_sensor_pin}
|
||||
id: gpio_binary_sensor
|
||||
|
||||
# Polling sensor alongside an interrupt sensor: proves the mixed build where
|
||||
# both code paths are compiled and selected per instance at runtime.
|
||||
- platform: gpio
|
||||
pin: ${binary_sensor_pin_2}
|
||||
id: gpio_binary_sensor_polling
|
||||
use_interrupt: false
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: ${output_pin}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
substitutions:
|
||||
binary_sensor_pin: GPIO2
|
||||
binary_sensor_pin_2: GPIO10
|
||||
output_pin: GPIO3
|
||||
switch_pin: GPIO4
|
||||
switch_pin_2: GPIO5
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
substitutions:
|
||||
binary_sensor_pin: GPIO12
|
||||
binary_sensor_pin_2: GPIO18
|
||||
output_pin: GPIO13
|
||||
switch_pin: GPIO14
|
||||
switch_pin_2: GPIO15
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
substitutions:
|
||||
binary_sensor_pin: GPIO0
|
||||
binary_sensor_pin_2: GPIO4
|
||||
output_pin: GPIO2
|
||||
switch_pin: GPIO15
|
||||
switch_pin_2: GPIO12
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
substitutions:
|
||||
binary_sensor_pin: GPIO2
|
||||
binary_sensor_pin_2: GPIO8
|
||||
output_pin: GPIO3
|
||||
switch_pin: GPIO4
|
||||
switch_pin_2: GPIO5
|
||||
|
||||
Reference in New Issue
Block a user