Header for MeStepperOnBoard.cpp module.
More...
#include "WProgram.h"
#include "stdlib.h"
#include "wiring.h"
Go to the source code of this file.
|
|
#define | NUM_SLOTS 4 |
| |
|
#define | SLOT_NUM_PINS 8 |
| |
|
|
typedef struct megaPi_slot | megaPi_slot_type |
| |
|
typedef void(* | cb) (int, int) |
| |
Header for MeStepperOnBoard.cpp module.
- 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:
- void MeStepperOnBoard::setMicroStep(int8_t value);
- void MeStepperOnBoard::setpin(int slot);
- void MeStepperOnBoard::moveTo(long absolute);
- void MeStepperOnBoard::moveTo(long absolute, int16_t extId, cb callback);
- void MeStepperOnBoard::move(long relative);
- void MeStepperOnBoard::move(long relative, int16_t extId, cb callback);
- boolean MeStepperOnBoard::run(void);
- boolean MeStepperOnBoard::runSpeed(void);
- void MeStepperOnBoard::setMaxSpeed(float speed);
- void MeStepperOnBoard::setAcceleration(float acceleration);
- void MeStepperOnBoard::setSpeed(float speed);
- float MeStepperOnBoard::speed(void);
- long MeStepperOnBoard::distanceToGo(void);
- long MeStepperOnBoard::targetPosition(void);
- long MeStepperOnBoard::currentPosition(void);
- void MeStepperOnBoard::setCurrentPosition(long position);
- void MeStepperOnBoard::runToPosition(void);
- boolean MeStepperOnBoard::runSpeedToPosition(void);
- void MeStepperOnBoard::runToNewPosition(long position);
- void MeStepperOnBoard::disableOutputs(void);
- void MeStepperOnBoard::enableOutputs(void);
- void MeStepperOnBoard::update(void);
- 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