MakeBlock Drive Updated
Updated library for MakeBlock Ranger
Loading...
Searching...
No Matches
MeStepperOnBoard.cpp File Reference

Driver for Stepper device. More...

#include "MeStepperOnBoard.h"
Include dependency graph for MeStepperOnBoard.cpp:

Enumerations

enum  Direction { DIRECTION_CCW = 0 , DIRECTION_CW = 1 }
 

Detailed Description

Driver for Stepper device.

Author
MakeBlock
Version
V1.0.3
Date
2018/01/03
Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is a drive for Me Stepper device.
Method List:
  1. void MeStepperOnBoard::setMicroStep(int8_t value);
  2. void MeStepperOnBoard::setpin(int slot);
  3. void MeStepperOnBoard::moveTo(long absolute);
  4. void MeStepperOnBoard::moveTo(long absolute, int16_t extId, cb callback);
  5. void MeStepperOnBoard::move(long relative);
  6. void MeStepperOnBoard::move(long relative, int16_t extId, cb callback);
  7. boolean MeStepperOnBoard::run(void);
  8. boolean MeStepperOnBoard::runSpeed(void);
  9. void MeStepperOnBoard::setMaxSpeed(float speed);
  10. void MeStepperOnBoard::setAcceleration(float acceleration);
  11. void MeStepperOnBoard::setSpeed(float speed);
  12. float MeStepperOnBoard::speed(void);
  13. long MeStepperOnBoard::distanceToGo(void);
  14. long MeStepperOnBoard::targetPosition(void);
  15. long MeStepperOnBoard::currentPosition(void);
  16. void MeStepperOnBoard::setCurrentPosition(long position);
  17. void MeStepperOnBoard::runToPosition(void);
  18. boolean MeStepperOnBoard::runSpeedToPosition(void);
  19. void MeStepperOnBoard::runToNewPosition(long position);
  20. void MeStepperOnBoard::disableOutputs(void);
  21. void MeStepperOnBoard::enableOutputs(void);
  22. void MeStepperOnBoard::update(void);
  23. int16_t MeStepperOnBoard::getPort(void);
History:
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
Mark Yan        2016/03/05     1.0.0            Bulid the new
Mark Yan        2016/05/06     1.0.1            Add function move and moveTo
Zzipeng         2017/02/20     1.0.2            put the array megaPi_slots[4] to MegaPi.h/MegaPiPro.h
Mark Yan        2018/01/03     1.0.3            Change the parameters order of moveTo/move

Enumeration Type Documentation

◆ Direction

enum Direction
Enumerator
DIRECTION_CCW 

Clockwise.

DIRECTION_CW 

Counter-Clockwise.