bool isSpinning() const ĬontinuousStepper_Timer1 is identical, except it can only have one instance and it doesn't have the loop() function. Tells wether the shaft is currently spinning. void setAcceleration( float_t acceleration) During accelerations and deccelerations, this value differs from the // target speed configured with spin(). Call isSpinning() to know when the motion is complete. The shaft will smoothly accelerate or decelerate to reach the // target speed. Sets the enable pin's level to its inactive level. Sets the enable pin's level to its active level and restores the current speed. You must call this function as frequently as possible. Updates the status of the step and dir pins. void setEnablePin( pin_t pinNumber, bool activeLevel = HIGH) The pin is set to its active level unless powerOff() was called. You can pass LOW as the second argument to invert the logic. void begin( pin_t stepPin, pin_t dirPin) Public: // Initialize the class and attaches to the specified pins. Uses neither delay() nor delayMicroseconds().Tiny footprint (about 150 lines of code).Optionally uses Khoi Hoang's PWM libraries (RP2040_PWM, SAMD_PWM, AVR_PWM, STM32_PWM, Teensy_PWM.).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |