mirror of
https://github.com/joshr120/PD-Stepper.git
synced 2025-11-04 14:49:56 +08:00
Merge pull request #21 from slimcdk/main
Import `tmc2209_hub` for custom ESPHome component examples
This commit is contained in:
commit
a01e2e57e1
@ -3,7 +3,7 @@
|
||||
|
||||
external_components:
|
||||
- source: github://slimcdk/esphome-custom-components
|
||||
components: [tmc2209, stepper]
|
||||
components: [tmc2209_hub, tmc2209, stepper]
|
||||
|
||||
substitutions:
|
||||
encoder_closed_pos: "30000" # full blinds length (in encoder counts) !! CHANGE TO SUIT YOUR SETUP !!
|
||||
@ -281,4 +281,4 @@ cover:
|
||||
position: !lambda return (1.0-id(pd_blinds)->position) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
- stepper.set_target:
|
||||
id: motor
|
||||
target: !lambda return (1.0-pos) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
target: !lambda return (1.0-pos) * ${encoder_closed_pos} * ${stepper_encoder_ratio};
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
|
||||
external_components:
|
||||
- source: github://slimcdk/esphome-custom-components
|
||||
components: [tmc2209, stepper]
|
||||
components: [tmc2209_hub, tmc2209, stepper]
|
||||
|
||||
globals:
|
||||
- id: encoder_tracking_
|
||||
@ -215,4 +215,4 @@ number:
|
||||
set_action:
|
||||
- stepper.set_target:
|
||||
id: driver
|
||||
target: !lambda "return x;"
|
||||
target: !lambda "return x;"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user