Set default configuration of endstops to configuration 4

This commit is contained in:
Unknown
2020-04-26 00:25:19 -04:00
parent 39fba04520
commit baa6e4b5dc
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ class Endstop {
uint16_t gpio_num = 0;
bool enabled = false;
bool is_active_high = false;
bool pullup = false;
bool pullup = true;
};
explicit Endstop(Endstop::Config_t& config);
+8 -4
View File
@@ -12,10 +12,11 @@ Each axis supports two endstops: `min_endstop` and `max_endstop`. For each ends
Name | Type | Default
--- | -- | --
gpio_num | int | 0
enabled | boolean | False
offset | int | 0
debounce_ms | float | 100.0
is_active_high | boolean | False
offset | float | 0.0
debounce_ms | float | 50.0
enabled | boolean | false
is_active_high | boolean | false
pullup | boolean | true
### gpio_num
The GPIO pin number, according to the silkscreen labels on ODrive. Set with these commands:
@@ -53,6 +54,9 @@ This is how you configure the endstop to be either "NPN" or "PNP". An "NPN" con
3D printer endstops (like those that come with a RAMPS 1.4) are typically configuration **4**.
### pullup
Match the pullup value to the configuration. If `true`, it enables the GPIO pullup resistor. If `false`, it enables the GPIO pull*down* resistor.
![Endstop configuration](Endstop_configuration.png)