X9C step delay with units (#6898)

This commit is contained in:
Oliver Hihn 2024-06-12 20:14:03 +02:00 committed by GitHub
parent 1a242f94db
commit 68dbf35b09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 7 deletions

View file

@ -27,7 +27,13 @@ CONFIG_SCHEMA = cv.All(
cv.Optional(CONF_INITIAL_VALUE, default=1.0): cv.float_range(
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),
),
),
}
)
)

View file

@ -5,4 +5,4 @@ output:
inc_pin: 4
ud_pin: 5
initial_value: 0.5
step_delay: 50
step_delay: 50us

View file

@ -5,4 +5,4 @@ output:
inc_pin: 4
ud_pin: 5
initial_value: 0.5
step_delay: 50
step_delay: 50us

View file

@ -5,4 +5,4 @@ output:
inc_pin: 14
ud_pin: 15
initial_value: 0.5
step_delay: 50
step_delay: 50us

View file

@ -5,4 +5,4 @@ output:
inc_pin: 14
ud_pin: 15
initial_value: 0.5
step_delay: 50
step_delay: 50us

View file

@ -5,4 +5,4 @@ output:
inc_pin: 14
ud_pin: 15
initial_value: 0.5
step_delay: 50
step_delay: 50us

View file

@ -5,4 +5,4 @@ output:
inc_pin: 4
ud_pin: 5
initial_value: 0.5
step_delay: 50
step_delay: 50us