1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Better/stricter pin validation (#903)

* Better/stricter pin validation

* Update tests
This commit is contained in:
Otto Winter
2019-12-04 16:47:34 +01:00
committed by GitHub
parent 064589934c
commit 0698be3995
3 changed files with 38 additions and 18 deletions

View File

@@ -435,7 +435,7 @@ sensor:
- platform: hx711
name: "HX711 Value"
dout_pin: GPIO23
clk_pin: GPIO24
clk_pin: GPIO25
gain: 128
update_interval: 15s
- platform: ina219
@@ -542,7 +542,7 @@ sensor:
name: "Rotary Encoder"
id: rotary_encoder1
pin_a: GPIO23
pin_b: GPIO24
pin_b: GPIO25
pin_reset: GPIO25
filters:
- or:
@@ -655,7 +655,7 @@ sensor:
integration_time: 402ms
gain: 16x
- platform: ultrasonic
trigger_pin: GPIO24
trigger_pin: GPIO25
echo_pin:
number: GPIO23
inverted: true
@@ -1396,11 +1396,11 @@ display:
dimensions: 18x4
data_pins:
- GPIO19
- GPIO20
- GPIO21
- GPIO22
- GPIO23
enable_pin: GPIO23
rs_pin: GPIO24
rs_pin: GPIO25
lambda: |-
it.print("Hello World!");
- platform: lcd_pcf8574
@@ -1528,7 +1528,7 @@ stepper:
- platform: a4988
id: my_stepper
step_pin: GPIO23
dir_pin: GPIO24
dir_pin: GPIO25
sleep_pin: GPIO25
max_speed: 250 steps/s
acceleration: 100 steps/s^2

View File

@@ -10,7 +10,7 @@ substitutions:
ethernet:
type: LAN8720
mdc_pin: GPIO23
mdio_pin: GPIO24
mdio_pin: GPIO25
clk_mode: GPIO0_IN
phy_addr: 0
power_pin: GPIO25
@@ -286,7 +286,7 @@ stepper:
- platform: uln2003
id: my_stepper
pin_a: GPIO23
pin_b: GPIO24
pin_b: GPIO27
pin_c: GPIO25
pin_d: GPIO26
sleep_when_done: no