mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 18:27:46 +01:00
X9C step delay with units (#6898)
This commit is contained in:
parent
1a242f94db
commit
68dbf35b09
7 changed files with 13 additions and 7 deletions
|
@ -27,7 +27,13 @@ CONFIG_SCHEMA = cv.All(
|
||||||
cv.Optional(CONF_INITIAL_VALUE, default=1.0): cv.float_range(
|
cv.Optional(CONF_INITIAL_VALUE, default=1.0): cv.float_range(
|
||||||
min=0.01, max=1.0
|
min=0.01, max=1.0
|
||||||
),
|
),
|
||||||
cv.Optional(CONF_STEP_DELAY, default=1): cv.int_range(min=1, max=100),
|
cv.Optional(CONF_STEP_DELAY, default="1us"): cv.All(
|
||||||
|
cv.positive_time_period_microseconds,
|
||||||
|
cv.Range(
|
||||||
|
min=cv.TimePeriod(microseconds=1),
|
||||||
|
max=cv.TimePeriod(microseconds=100),
|
||||||
|
),
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 4
|
inc_pin: 4
|
||||||
ud_pin: 5
|
ud_pin: 5
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 4
|
inc_pin: 4
|
||||||
ud_pin: 5
|
ud_pin: 5
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 14
|
inc_pin: 14
|
||||||
ud_pin: 15
|
ud_pin: 15
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 14
|
inc_pin: 14
|
||||||
ud_pin: 15
|
ud_pin: 15
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 14
|
inc_pin: 14
|
||||||
ud_pin: 15
|
ud_pin: 15
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
|
@ -5,4 +5,4 @@ output:
|
||||||
inc_pin: 4
|
inc_pin: 4
|
||||||
ud_pin: 5
|
ud_pin: 5
|
||||||
initial_value: 0.5
|
initial_value: 0.5
|
||||||
step_delay: 50
|
step_delay: 50us
|
||||||
|
|
Loading…
Reference in a new issue