mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Add some components to the new testing framework (U) (#6230)
This commit is contained in:
29
tests/components/uln2003/test.esp32-c3-idf.yaml
Normal file
29
tests/components/uln2003/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 0
|
||||
pin_b: 1
|
||||
pin_c: 2
|
||||
pin_d: 3
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
29
tests/components/uln2003/test.esp32-c3.yaml
Normal file
29
tests/components/uln2003/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 0
|
||||
pin_b: 1
|
||||
pin_c: 2
|
||||
pin_d: 3
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
29
tests/components/uln2003/test.esp32-idf.yaml
Normal file
29
tests/components/uln2003/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 12
|
||||
pin_b: 13
|
||||
pin_c: 14
|
||||
pin_d: 15
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
29
tests/components/uln2003/test.esp32.yaml
Normal file
29
tests/components/uln2003/test.esp32.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 12
|
||||
pin_b: 13
|
||||
pin_c: 14
|
||||
pin_d: 15
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
29
tests/components/uln2003/test.esp8266.yaml
Normal file
29
tests/components/uln2003/test.esp8266.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 12
|
||||
pin_b: 13
|
||||
pin_c: 14
|
||||
pin_d: 15
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
29
tests/components/uln2003/test.rp2040.yaml
Normal file
29
tests/components/uln2003/test.rp2040.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- stepper.report_position:
|
||||
id: uln2003_stepper
|
||||
position: 250
|
||||
- stepper.set_target:
|
||||
id: uln2003_stepper
|
||||
target: 250
|
||||
- stepper.set_acceleration:
|
||||
id: uln2003_stepper
|
||||
acceleration: 250 steps/s^2
|
||||
- stepper.set_deceleration:
|
||||
id: uln2003_stepper
|
||||
deceleration: 250 steps/s^2
|
||||
- stepper.set_speed:
|
||||
id: uln2003_stepper
|
||||
speed: 250 steps/s
|
||||
|
||||
stepper:
|
||||
- platform: uln2003
|
||||
id: uln2003_stepper
|
||||
pin_a: 0
|
||||
pin_b: 1
|
||||
pin_c: 2
|
||||
pin_d: 3
|
||||
max_speed: 250 steps/s
|
||||
acceleration: 100 steps/s^2
|
||||
deceleration: 200 steps/s^2
|
Reference in New Issue
Block a user