From f6394a6c4dfce161a937ac577846ee0b335b5c29 Mon Sep 17 00:00:00 2001 From: Paul Guenette Date: Sat, 20 Nov 2021 13:55:30 -0500 Subject: [PATCH] Update endstops.md Remove dependency on cpr in endstop example --- docs/endstops.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/endstops.md b/docs/endstops.md index d41ee731..b43b682c 100644 --- a/docs/endstops.md +++ b/docs/endstops.md @@ -66,13 +66,13 @@ Assuming your endstop is connected to GPIO X: ### Example -If we want to configure a 3D printer-style (configuration 4) minimum endstop for homing on GPIO 5 and we want our motor to move away from the endstop about a quarter turn with a 8192 cpr encoder, we would set: +If we want to configure a 3D printer-style (configuration 4) minimum endstop for homing on GPIO 5 and we want our motor to move away from the endstop about a quarter turn, we would set: ``` .config.gpio5_mode = GPIO_MODE_DIGITAL ..min_endstop.config.gpio_num = 5 ..min_endstop.config.is_active_high = False -..min_endstop.config.offset = -1.0*(8912/4) +..min_endstop.config.offset = -0.25 ..min_endstop.config.enabled = True .config.gpio5_mode = GPIO_MODE_DIGITAL_PULL_UP ``` @@ -90,7 +90,6 @@ A state of `True` means the switch is pressed. A state of `False` means the swi After testing, don't forget to save and reboot: ``` .save_configuration() -.reboot() ``` ---