mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Add some components to the new testing framework (S part 2) (#6227)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										27
									
								
								tests/components/stepper/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								tests/components/stepper/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| stepper: | ||||
|   - platform: a4988 | ||||
|     id: test_stepper | ||||
|     step_pin: 3 | ||||
|     dir_pin: 4 | ||||
|     sleep_pin: 5 | ||||
|     max_speed: 250 steps/s | ||||
|     acceleration: 100 steps/s^2 | ||||
|     deceleration: 200 steps/s^2 | ||||
|  | ||||
| switch: | ||||
|   - platform: template | ||||
|     name: Stepper Switch | ||||
|     assumed_state: true | ||||
|     turn_on_action: | ||||
|       - stepper.set_target: | ||||
|           id: test_stepper | ||||
|           target: !lambda |- | ||||
|             static int32_t i = 0; | ||||
|             i += 1000; | ||||
|             if (i > 5000) { | ||||
|               i = -5000; | ||||
|             } | ||||
|             return i; | ||||
|       - stepper.report_position: | ||||
|           id: test_stepper | ||||
|           position: 0 | ||||
		Reference in New Issue
	
	Block a user