Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
MeStepper.h File Reference

Header for MeStepper.cpp module. More...

#include "MePort.h"
#include "WProgram.h"
#include "stdlib.h"
#include "wiring.h"

Go to the source code of this file.


class  MeStepper
 Driver for Me Stepper device. More...

Detailed Description

Header for MeStepper.cpp module.

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
This file is a drive for Me Stepper device.
Method List:
  1. void MeStepper::setpin(uint8_t dir_data, uint8_t step_data);
  2. void MeStepper::moveTo(long absolute);
  3. void MeStepper::move(long relative);
  4. boolean MeStepper::run();
  5. boolean MeStepper::runSpeed();
  6. void MeStepper::setMaxSpeed(float speed);
  7. void MeStepper::setAcceleration(float acceleration);
  8. void MeStepper::setSpeed(float speed);
  9. float MeStepper::speed();
  10. long MeStepper::distanceToGo();
  11. long MeStepper::targetPosition();
  12. long MeStepper::currentPosition();
  13. void MeStepper::setCurrentPosition(long position);
  14. void MeStepper::runToPosition();
  15. boolean MeStepper::runSpeedToPosition();
  16. void MeStepper::runToNewPosition(long position);
  17. void MeStepper::disableOutputs();
  18. void MeStepper::enableOutputs();
<Author>         <Time>        <Version>        <Descr>
Mark Yan        2015/10/09     1.0.0            Bulid the new
Mark Yan        2015/10/29     1.0.1            Fix minor errors in format
forfish         2015/11/11     1.0.2            Add description.
Mark Yan        2016/01/20     1.0.3            Fix minor errors in comment.