Skip to content

Commit 6a8f70d

Browse files
authored
Update README.md
Added documentation for invert_enable
1 parent acc69ab commit 6a8f70d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ s2 = Stepper(20,dir_pin,steps_per_rev=200,speed_sps=50)
6666
```
6767

6868
## API
69-
### class Stepper(step_pin,dir_pin,en_pin=None,steps_per_rev=200,speed_sps=10,invert_dir=False,timer_id=-1)
69+
### class Stepper(step_pin,dir_pin,en_pin=None,steps_per_rev=200,speed_sps=10,invert_dir=False,invert_enable=False,timer_id=-1)
7070
- step_pin: Pin id or machine.Pin object for the pin connected to the step input of the stepper driver
7171
- dir_pin: Pin id or machine.Pin object for the pin connected to the direction select input of the stepper driver
7272
- en_pin: (Optional) None or pin id or machine.Pin object for the pin connected to the enable input of the stepper driver
7373
- steps_per_rev: Amount of stepper steps that would result in a 360° rotation
7474
- speed_sps: Speed in steps per secound (= step frequency in Hz)
7575
- invert_dir: True if the direction of the stepper should be inverted
76+
- invert_enable: True if the stepper driver needs an inverted enable signal
7677
- timer_id: Id of the timer that should be used. On most boards -1 will construct a new virtual timer (https://docs.micropython.org/en/latest/library/machine.Timer.html)
7778

7879

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy