MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
Enumerations
MeStepper.cpp File Reference

Driver for Stepper device. More...

`#include "MeStepper.h"`
Include dependency graph for MeStepper.cpp:

## Enumerations
enum | Direction { DIRECTION_CCW = 0 , DIRECTION_CW = 1 }

## Detailed Description

Driver for Stepper device.

Author
  MakeBlock

Version
  V1.0.3

Date
  2016/01/20

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 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();

History:

      `<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.

DERIVED FROM // AccelStepper.h // // Copyright (C) 2009-2013 Mike McCauley //

Id
  AccelStepper.cpp,v 1.23 2016/08/09 00:39:10 mikem Exp

## Enumeration Type Documentation

## ◆ Direction

enum Direction

Enumerator
DIRECTION_CCW | Clockwise.
DIRECTION_CW | Counter-Clockwise.