From 5882093f46d5e0ae84c3ebddd36255617b8932bb Mon Sep 17 00:00:00 2001 From: waspinator Date: Sat, 14 Apr 2018 14:21:10 -0400 Subject: [PATCH] updated to 1.58 Add initialisation for _enableInverted in constructor. --- extras/doc/annotated.html | 29 +- extras/doc/classAccelStepper-members.html | 29 +- extras/doc/classAccelStepper.html | 306 +++++++++++++--------- extras/doc/doxygen.css | 139 +++++++++- extras/doc/files.html | 28 +- extras/doc/functions.html | 78 ++---- extras/doc/functions_func.html | 69 ++--- extras/doc/index.html | 29 +- extras/doc/tabs.css | 61 +---- library.properties | 2 +- src/AccelStepper.cpp | 3 +- src/AccelStepper.h | 4 +- 12 files changed, 419 insertions(+), 358 deletions(-) diff --git a/extras/doc/annotated.html b/extras/doc/annotated.html index ca245cd..7f48b6f 100644 --- a/extras/doc/annotated.html +++ b/extras/doc/annotated.html @@ -3,7 +3,8 @@ - + + AccelStepper: Class List @@ -25,21 +26,15 @@ - - - + + + + +
@@ -57,7 +52,7 @@ diff --git a/extras/doc/classAccelStepper-members.html b/extras/doc/classAccelStepper-members.html index f228fce..44b31e5 100644 --- a/extras/doc/classAccelStepper-members.html +++ b/extras/doc/classAccelStepper-members.html @@ -3,7 +3,8 @@ - + + AccelStepper: Member List @@ -25,21 +26,15 @@
- - - + + + + +
@@ -102,7 +97,7 @@ diff --git a/extras/doc/classAccelStepper.html b/extras/doc/classAccelStepper.html index 4df6517..f4087cb 100644 --- a/extras/doc/classAccelStepper.html +++ b/extras/doc/classAccelStepper.html @@ -3,7 +3,8 @@ - + + AccelStepper: AccelStepper Class Reference @@ -25,21 +26,15 @@
- - - + + + + +
@@ -175,7 +170,9 @@
Performance
The fastest motor speed that can be reliably supported is about 4000 steps per second at a clock frequency of 16 MHz on Arduino such as Uno etc. Faster processors can support faster stepping speeds. However, any speed less than that down to very slow speeds (much less than one per second) are also supported, provided the run() function is called frequently enough to step the motor whenever required for the speed set. Calling setAcceleration() is expensive, since it requires a square root to be calculated.

Gregor Christandl reports that with an Arduino Due and a simple test program, he measured 43163 steps per second using runSpeed(), and 16214 steps per second using run();

Member Enumeration Documentation

- + +

◆ Direction

+
@@ -195,17 +192,17 @@

Direction indicator Symbolic names for the direction the motor is turning.

- -
Enumerator
DIRECTION_CCW  -

Counter-Clockwise.

+
Enumerator
DIRECTION_CCW 

Counter-Clockwise.

DIRECTION_CW  -

Clockwise.

+
DIRECTION_CW 

Clockwise.

- + +

◆ MotorInterfaceType

+
@@ -217,33 +214,28 @@

Symbolic names for number of pins. Use this in the pins argument the AccelStepper constructor to provide a symbolic name for the number of pins to use.

- - - - - - -
Enumerator
FUNCTION  -

Use the functional interface, implementing your own driver functions (internal use only)

+
Enumerator
FUNCTION 

Use the functional interface, implementing your own driver functions (internal use only)

DRIVER  -

Stepper Driver, 2 driver pins required.

+
DRIVER 

Stepper Driver, 2 driver pins required.

FULL2WIRE  -

2 wire stepper, 2 motor pins required

+
FULL2WIRE 

2 wire stepper, 2 motor pins required

FULL3WIRE  -

3 wire stepper, such as HDD spindle, 3 motor pins required

+
FULL3WIRE 

3 wire stepper, such as HDD spindle, 3 motor pins required

FULL4WIRE  -

4 wire full stepper, 4 motor pins required

+
FULL4WIRE 

4 wire full stepper, 4 motor pins required

HALF3WIRE  -

3 wire half stepper, such as HDD spindle, 3 motor pins required

+
HALF3WIRE 

3 wire half stepper, such as HDD spindle, 3 motor pins required

HALF4WIRE  -

4 wire half stepper, 4 motor pins required

+
HALF4WIRE 

4 wire half stepper, 4 motor pins required

Constructor & Destructor Documentation

- + +

◆ AccelStepper() [1/2]

+
@@ -302,11 +294,13 @@

Constructor & Destructor Documentation

-

References _direction, DIRECTION_CCW, enableOutputs(), and setAcceleration().

+

References _direction, DIRECTION_CCW, enableOutputs(), and setAcceleration().

- + +

◆ AccelStepper() [2/2]

+
@@ -337,12 +331,14 @@

Constructor & Destructor Documentation

-

References _direction, DIRECTION_CCW, and setAcceleration().

+

References _direction, DIRECTION_CCW, and setAcceleration().

Member Function Documentation

- + +

◆ computeNewSpeed()

+
@@ -369,13 +365,15 @@

Member Function Documentation

  • after change to target position (relative or absolute) through move() or moveTo()
  • -

    References _direction, DIRECTION_CCW, DIRECTION_CW, and distanceToGo().

    +

    References _direction, DIRECTION_CCW, DIRECTION_CW, and distanceToGo().

    -

    Referenced by moveTo(), run(), setAcceleration(), and setMaxSpeed().

    +

    Referenced by moveTo(), run(), setAcceleration(), and setMaxSpeed().

    - + +

    ◆ currentPosition()

    +
    @@ -389,11 +387,13 @@

    Member Function Documentation

    The currently motor position.

    Returns
    the current motor position in steps. Positive is clockwise from the 0 position.
    -

    Referenced by MultiStepper::moveTo().

    +

    Referenced by MultiStepper::moveTo().

    - + +

    ◆ disableOutputs()

    +
    @@ -415,11 +415,13 @@

    Member Function Documentation

    Disable motor pin outputs by setting them all LOW Depending on the design of your electronics this may turn off the power to the motor coils, saving power. This is useful to support Arduino low power modes: disable the outputs during sleep and then reenable with enableOutputs() before stepping again. If the enable Pin is defined, sets it to OUTPUT mode and clears the pin to disabled.

    -

    References setOutputPins().

    +

    References setOutputPins().

    - + +

    ◆ distanceToGo()

    +
    @@ -433,11 +435,13 @@

    Member Function Documentation

    The distance from the current position to the target position.

    Returns
    the distance from the current position to the target position in steps. Positive is clockwise from the current position.
    -

    Referenced by computeNewSpeed(), and run().

    +

    Referenced by computeNewSpeed(), and run().

    - + +

    ◆ enableOutputs()

    +
    @@ -459,13 +463,15 @@

    Member Function Documentation

    Enable motor pin outputs by setting the motor pins to OUTPUT mode. Called automatically by the constructor. If the enable Pin is defined, sets it to OUTPUT mode and sets the pin to enabled.

    -

    References FULL3WIRE, FULL4WIRE, HALF3WIRE, and HALF4WIRE.

    +

    References FULL3WIRE, FULL4WIRE, HALF3WIRE, and HALF4WIRE.

    -

    Referenced by AccelStepper().

    +

    Referenced by AccelStepper().

    - + +

    ◆ isRunning()

    +
    @@ -481,7 +487,9 @@

    Member Function Documentation

    - + +

    ◆ maxSpeed()

    +
    @@ -495,11 +503,13 @@

    Member Function Documentation

    returns the maximum speed configured for this stepper that was previously set by setMaxSpeed();

    Returns
    The currently configured maximum speed
    -

    Referenced by MultiStepper::moveTo().

    +

    Referenced by MultiStepper::moveTo().

    - + +

    ◆ move()

    +
    @@ -519,13 +529,15 @@

    Member Function Documentation

    -

    References moveTo().

    +

    References moveTo().

    -

    Referenced by stop().

    +

    Referenced by stop().

    - + +

    ◆ moveTo()

    +
    @@ -545,13 +557,15 @@

    Member Function Documentation

    -

    References computeNewSpeed().

    +

    References computeNewSpeed().

    -

    Referenced by move(), MultiStepper::moveTo(), and runToNewPosition().

    +

    Referenced by move(), MultiStepper::moveTo(), and runToNewPosition().

    - + +

    ◆ run()

    +
    @@ -565,13 +579,15 @@

    Member Function Documentation

    Poll the motor and step it if a step is due, implementing accelerations and decelerations to acheive the target position. You must call this as frequently as possible, but at least once per minimum step time interval, preferably in your main loop. Note that each call to run() will make at most one step, and then only when a step is due, based on the current speed and the time since the last step.

    Returns
    true if the motor is still running to the target position.
    -

    References computeNewSpeed(), distanceToGo(), and runSpeed().

    +

    References computeNewSpeed(), distanceToGo(), and runSpeed().

    -

    Referenced by runToPosition().

    +

    Referenced by runToPosition().

    - + +

    ◆ runSpeed()

    +
    @@ -585,13 +601,15 @@

    Member Function Documentation

    Poll the motor and step it if a step is due, implementing a constant speed as set by the most recent call to setSpeed(). You must call this as frequently as possible, but at least once per step interval,

    Returns
    true if the motor was stepped.
    -

    References _direction, DIRECTION_CW, and step().

    +

    References _direction, DIRECTION_CW, and step().

    -

    Referenced by MultiStepper::run(), run(), and runSpeedToPosition().

    +

    Referenced by MultiStepper::run(), run(), and runSpeedToPosition().

    - + +

    ◆ runSpeedToPosition()

    +
    @@ -605,11 +623,13 @@

    Member Function Documentation

    Runs at the currently selected speed until the target position is reached Does not implement accelerations.

    Returns
    true if it stepped
    -

    References _direction, DIRECTION_CCW, DIRECTION_CW, and runSpeed().

    +

    References _direction, DIRECTION_CCW, DIRECTION_CW, and runSpeed().

    - + +

    ◆ runToNewPosition()

    +
    @@ -629,11 +649,13 @@

    Member Function Documentation

    -

    References moveTo(), and runToPosition().

    +

    References moveTo(), and runToPosition().

    - + +

    ◆ runToPosition()

    +
    @@ -647,13 +669,15 @@

    Member Function Documentation

    Moves the motor (with acceleration/deceleration) to the target position and blocks until it is at position. Dont use this in event loops, since it blocks.

    -

    References run().

    +

    References run().

    -

    Referenced by runToNewPosition().

    +

    Referenced by runToNewPosition().

    - + +

    ◆ setAcceleration()

    +
    @@ -673,13 +697,15 @@

    Member Function Documentation

    -

    References computeNewSpeed().

    +

    References computeNewSpeed().

    -

    Referenced by AccelStepper().

    +

    Referenced by AccelStepper().

    - + +

    ◆ setCurrentPosition()

    +
    @@ -701,7 +727,9 @@

    Member Function Documentation

    - + +

    ◆ setEnablePin()

    +
    @@ -724,7 +752,9 @@

    Member Function Documentation

    - + +

    ◆ setMaxSpeed()

    +
    @@ -744,11 +774,13 @@

    Member Function Documentation

    -

    References computeNewSpeed(), and speed().

    +

    References computeNewSpeed(), and speed().

    - + +

    ◆ setMinPulseWidth()

    +
    @@ -770,7 +802,9 @@

    Member Function Documentation

    - + +

    ◆ setOutputPins()

    +
    @@ -793,13 +827,15 @@

    Member Function Documentation

    Low level function to set the motor output pins bit 0 of the mask corresponds to _pin[0] bit 1 of the mask corresponds to _pin[1] You can override this to impment, for example serial chip output insted of using the output pins directly

    -

    References FULL3WIRE, FULL4WIRE, HALF3WIRE, and HALF4WIRE.

    +

    References FULL3WIRE, FULL4WIRE, HALF3WIRE, and HALF4WIRE.

    -

    Referenced by disableOutputs(), step1(), step2(), step3(), step4(), step6(), and step8().

    +

    Referenced by disableOutputs(), step1(), step2(), step3(), step4(), step6(), and step8().

    - + +

    ◆ setPinsInverted() [1/2]

    +
    @@ -839,7 +875,9 @@

    Member Function Documentation

    - + +

    ◆ setPinsInverted() [2/2]

    +
    @@ -893,7 +931,9 @@

    Member Function Documentation

    - + +

    ◆ setSpeed()

    +
    @@ -913,13 +953,15 @@

    Member Function Documentation

    -

    References _direction, DIRECTION_CCW, DIRECTION_CW, and speed().

    +

    References _direction, DIRECTION_CCW, DIRECTION_CW, and speed().

    -

    Referenced by MultiStepper::moveTo().

    +

    Referenced by MultiStepper::moveTo().

    - + +

    ◆ speed()

    +
    @@ -933,11 +975,13 @@

    Member Function Documentation

    The most recently set speed

    Returns
    the most recent speed in steps per second
    -

    Referenced by setMaxSpeed(), and setSpeed().

    +

    Referenced by setMaxSpeed(), and setSpeed().

    - + +

    ◆ step()

    +
    @@ -965,13 +1009,15 @@

    Member Function Documentation

    -

    References DRIVER, FULL2WIRE, FULL3WIRE, FULL4WIRE, FUNCTION, HALF3WIRE, HALF4WIRE, step0(), step1(), step2(), step3(), step4(), step6(), and step8().

    +

    References DRIVER, FULL2WIRE, FULL3WIRE, FULL4WIRE, FUNCTION, HALF3WIRE, HALF4WIRE, step0(), step1(), step2(), step3(), step4(), step6(), and step8().

    -

    Referenced by runSpeed().

    +

    Referenced by runSpeed().

    - + +

    ◆ step0()

    +
    @@ -999,11 +1045,13 @@

    Member Function Documentation

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step1()

    +
    @@ -1031,13 +1079,15 @@

    Member Function Documentation

    -

    References _direction, and setOutputPins().

    +

    References _direction, and setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step2()

    +
    @@ -1065,13 +1115,15 @@

    Member Function Documentation

    -

    References setOutputPins().

    +

    References setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step3()

    +
    @@ -1099,13 +1151,15 @@

    Member Function Documentation

    -

    References setOutputPins().

    +

    References setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step4()

    +
    @@ -1133,13 +1187,15 @@

    Member Function Documentation

    -

    References setOutputPins().

    +

    References setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step6()

    +
    @@ -1167,13 +1223,15 @@

    Member Function Documentation

    -

    References setOutputPins().

    +

    References setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ step8()

    +
    @@ -1201,13 +1259,15 @@

    Member Function Documentation

    -

    References setOutputPins().

    +

    References setOutputPins().

    -

    Referenced by step().

    +

    Referenced by step().

    - + +

    ◆ stop()

    +
    @@ -1221,11 +1281,13 @@

    Member Function Documentation

    Sets a new target position that causes the stepper to stop as quickly as possible, using the current speed and acceleration parameters.

    -

    References move().

    +

    References move().

    - + +

    ◆ targetPosition()

    +
    @@ -1242,7 +1304,9 @@

    Member Function Documentation

    Member Data Documentation

    - + +

    ◆ _direction

    +
    @@ -1261,7 +1325,7 @@

    Member Data Documentation

    Current direction motor is spinning in Protected because some peoples subclasses need it to be so

    -

    Referenced by AccelStepper(), computeNewSpeed(), runSpeed(), runSpeedToPosition(), setSpeed(), and step1().

    +

    Referenced by AccelStepper(), computeNewSpeed(), runSpeed(), runSpeedToPosition(), setSpeed(), and step1().

    @@ -1274,7 +1338,7 @@

    Member Data Documentation

    diff --git a/extras/doc/doxygen.css b/extras/doc/doxygen.css index 1425ec5..4f1ab91 100644 --- a/extras/doc/doxygen.css +++ b/extras/doc/doxygen.css @@ -1,9 +1,13 @@ -/* The standard CSS for doxygen 1.8.11 */ +/* The standard CSS for doxygen 1.8.13 */ body, table, div, p, dl { font: 400 14px/22px Roboto,sans-serif; } +p.reference, p.definition { + font: 400 14px/22px Roboto,sans-serif; +} + /* @group Heading Levels */ h1.groupheader { @@ -173,7 +177,7 @@ pre.fragment { } div.fragment { - padding: 4px 6px; + padding: 0px; margin: 4px 8px 4px 2px; background-color: #FBFCFD; border: 1px solid #C4CFE5; @@ -232,6 +236,15 @@ span.lineno a:hover { background-color: #C8C8C8; } +.lineno { + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + div.ah, span.ah { background-color: black; font-weight: bold; @@ -501,6 +514,29 @@ table.memberdecls { /* Styles for detailed member documentation */ +.memtitle { + padding: 8px; + border-top: 1px solid #A8B8D9; + border-left: 1px solid #A8B8D9; + border-right: 1px solid #A8B8D9; + border-top-right-radius: 4px; + border-top-left-radius: 4px; + margin-bottom: -1px; + background-image: url('nav_f.png'); + background-repeat: repeat-x; + background-color: #E2E8F2; + line-height: 1.25; + font-weight: 300; + float:left; +} + +.permalink +{ + font-size: 65%; + display: inline-block; + vertical-align: middle; +} + .memtemplate { font-size: 80%; color: #4665A2; @@ -539,7 +575,7 @@ table.memberdecls { } .memname { - font-weight: bold; + font-weight: 400; margin-left: 6px; } @@ -555,24 +591,24 @@ table.memberdecls { color: #253555; font-weight: bold; text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); - background-image:url('nav_f.png'); - background-repeat:repeat-x; - background-color: #E2E8F2; + background-color: #DFE5F1; /* opera specific markup */ box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); border-top-right-radius: 4px; - border-top-left-radius: 4px; /* firefox specific markup */ -moz-box-shadow: rgba(0, 0, 0, 0.15) 5px 5px 5px; -moz-border-radius-topright: 4px; - -moz-border-radius-topleft: 4px; /* webkit specific markup */ -webkit-box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); -webkit-border-top-right-radius: 4px; - -webkit-border-top-left-radius: 4px; } +.overload { + font-family: "courier new",courier,monospace; + font-size: 65%; +} + .memdoc, dl.reflist dd { border-bottom: 1px solid #A8B8D9; border-left: 1px solid #A8B8D9; @@ -914,6 +950,7 @@ table.fieldtable { padding-bottom: 4px; padding-top: 5px; text-align:left; + font-weight: 400; -moz-border-radius-topleft: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-left-radius: 4px; @@ -1178,6 +1215,11 @@ dl.section dd { text-align: center; } +.plantumlgraph +{ + text-align: center; +} + .diagraph { text-align: center; @@ -1473,3 +1515,82 @@ tr.heading h2 { } } +/* @group Markdown */ + +/* +table.markdownTable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.markdownTable td, table.markdownTable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.markdownTableHead tr { +} + +table.markdownTableBodyLeft td, table.markdownTable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +th.markdownTableHeadLeft th.markdownTableHeadRight th.markdownTableHeadCenter th.markdownTableHeadNone { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +th.markdownTableHeadLeft { + text-align: left +} + +th.markdownTableHeadRight { + text-align: right +} + +th.markdownTableHeadCenter { + text-align: center +} +*/ + +table.markdownTable { + border-collapse:collapse; + margin-top: 4px; + margin-bottom: 4px; +} + +table.markdownTable td, table.markdownTable th { + border: 1px solid #2D4068; + padding: 3px 7px 2px; +} + +table.markdownTable tr { +} + +th.markdownTableHeadLeft, th.markdownTableHeadRight, th.markdownTableHeadCenter, th.markdownTableHeadNone { + background-color: #374F7F; + color: #FFFFFF; + font-size: 110%; + padding-bottom: 4px; + padding-top: 5px; +} + +th.markdownTableHeadLeft, td.markdownTableBodyLeft { + text-align: left +} + +th.markdownTableHeadRight, td.markdownTableBodyRight { + text-align: right +} + +th.markdownTableHeadCenter, td.markdownTableBodyCenter { + text-align: center +} + + +/* @end */ diff --git a/extras/doc/files.html b/extras/doc/files.html index 0c27312..d242c7d 100644 --- a/extras/doc/files.html +++ b/extras/doc/files.html @@ -3,7 +3,8 @@ - + +AccelStepper: File List @@ -25,20 +26,15 @@
    - - - + + + + +
    @@ -56,7 +52,7 @@ diff --git a/extras/doc/functions.html b/extras/doc/functions.html index f5de038..dda93bc 100644 --- a/extras/doc/functions.html +++ b/extras/doc/functions.html @@ -3,7 +3,8 @@ - + + AccelStepper: Class Members @@ -25,58 +26,27 @@
    - - - - - + + + + +
    Here is a list of all documented class members with links to the class documentation for each member:
    -

    - _ -

      +

      - _ -

      -

      - a -

        +

        - a -

        • AccelStepper() : AccelStepper
        • @@ -86,7 +56,7 @@

          - a -

          -

          - c -

            +

            - c -

            • computeNewSpeed() : AccelStepper
            • @@ -96,7 +66,7 @@

              - c -

              -

              - d -

                +

                - d -

                • Direction : AccelStepper
                • @@ -118,14 +88,14 @@

                  - d -

                  -

                  - e -

                    +

                    - e -

                    -

                    - f -

                      +

                      - f -

                      • FULL2WIRE : AccelStepper
                      • @@ -141,7 +111,7 @@

                        - f -

                        -

                        - h -

                          +

                          - h -

                          • HALF3WIRE : AccelStepper
                          • @@ -151,14 +121,14 @@

                            - h -

                            -

                            - i -

                              +

                              - i -

                              -

                              - m -

                                +

                                - m -

                                • maxSpeed() : AccelStepper
                                • @@ -178,7 +148,7 @@

                                  - m -

                                  -

                                  - r -

                                    +

                                    - r -

                                    • run() : AccelStepper , MultiStepper @@ -199,7 +169,7 @@

                                      - r -

                                      -

                                      - s -

                                        +

                                        - s -

                                        • setAcceleration() : AccelStepper
                                        • @@ -257,7 +227,7 @@

                                          - s -

                                          -

                                          - t -

                                            +

                                            - t -

                                            • targetPosition() : AccelStepper
                                            • @@ -267,7 +237,7 @@

                                              - t -

                                                diff --git a/extras/doc/functions_func.html b/extras/doc/functions_func.html index d087b5b..4eab539 100644 --- a/extras/doc/functions_func.html +++ b/extras/doc/functions_func.html @@ -3,7 +3,8 @@ - + + AccelStepper: Class Members - Functions @@ -25,48 +26,20 @@
    - - - - - + + + + +
      -

    - a -

    - - + + + + +
    @@ -53,7 +54,7 @@
  • Extensive API
  • Subclass support
  • -

    The latest version of this documentation can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper The version of the package that this documentation refers to can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.57.zip

    +

    The latest version of this documentation can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper The version of the package that this documentation refers to can be downloaded from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.58.zip

    Example Arduino programs are included to show the main modes of use.

    You can also find online help and discussion at http://groups.google.com/group/accelstepper Please use that group for all questions and discussions on this topic. Do not contact the author directly, unless it is to discuss commercial licensing. Before asking a question or reporting a bug, please read

    • http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question
    • @@ -204,14 +205,16 @@
      1.56 2017-02-03 Fixed minor documentation error with DIRECTION_CCW and DIRECTION_CW. Reported by David Mutterer. Added link to Binpress commercial license purchasing.
      -1.57 2017-03-28 _direction moved to protected at the request of Rudy Ercek. setMaxSpeed() and setAcceleration() now correct negative values to be positive.
      +1.57 2017-03-28 _direction moved to protected at the request of Rudy Ercek. setMaxSpeed() and setAcceleration() now correct negative values to be positive. +
      +1.58 2018-04-13 Add initialisation for _enableInverted in constructor.
      Author
      Mike McCauley (mikem.nosp@m.@air.nosp@m.spayc.nosp@m.e.co.nosp@m.m) DO NOT CONTACT THE AUTHOR DIRECTLY: USE THE LISTS
    diff --git a/extras/doc/tabs.css b/extras/doc/tabs.css index 9cf578f..85a0cd5 100644 --- a/extras/doc/tabs.css +++ b/extras/doc/tabs.css @@ -1,60 +1 @@ -.tabs, .tabs2, .tabs3 { - background-image: url('tab_b.png'); - width: 100%; - z-index: 101; - font-size: 13px; - font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; -} - -.tabs2 { - font-size: 10px; -} -.tabs3 { - font-size: 9px; -} - -.tablist { - margin: 0; - padding: 0; - display: table; -} - -.tablist li { - float: left; - display: table-cell; - background-image: url('tab_b.png'); - line-height: 36px; - list-style: none; -} - -.tablist a { - display: block; - padding: 0 20px; - font-weight: bold; - background-image:url('tab_s.png'); - background-repeat:no-repeat; - background-position:right; - color: #283A5D; - text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); - text-decoration: none; - outline: none; -} - -.tabs3 .tablist a { - padding: 0 10px; -} - -.tablist a:hover { - background-image: url('tab_h.png'); - background-repeat:repeat-x; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); - text-decoration: none; -} - -.tablist li.current a { - background-image: url('tab_a.png'); - background-repeat:repeat-x; - color: #fff; - text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); -} +.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.sm-dox{background-image:url("tab_b.png")}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0 12px;padding-right:43px;font-family:"Lucida Grande","Geneva","Helvetica",Arial,sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:0 1px 1px rgba(255,255,255,0.9);color:#283a5d;outline:0}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a.current{color:#d23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace!important;text-align:center;text-shadow:none;background:rgba(255,255,255,0.5);-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{-moz-border-radius:5px 5px 0 0;-webkit-border-radius:5px;border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{-moz-border-radius:0 0 5px 5px;-webkit-border-radius:0;border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox ul{background:rgba(162,162,162,0.1)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:white;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media(min-width:768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:url("tab_b.png");line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:#283a5d transparent transparent transparent;background:transparent;-moz-border-radius:0;-webkit-border-radius:0;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0 12px;background-image:url("tab_s.png");background-repeat:no-repeat;background-position:right;-moz-border-radius:0!important;-webkit-border-radius:0;border-radius:0!important}.sm-dox a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox a:hover span.sub-arrow{border-color:white transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent #fff transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:#fff;-moz-border-radius:5px!important;-webkit-border-radius:5px;border-radius:5px!important;-moz-box-shadow:0 5px 9px rgba(0,0,0,0.2);-webkit-box-shadow:0 5px 9px rgba(0,0,0,0.2);box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent #555;border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:#555;background-image:none;border:0!important;color:#555;background-image:none}.sm-dox ul a:hover{background-image:url("tab_a.png");background-repeat:repeat-x;color:white;text-shadow:0 1px 1px black}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent white}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:#fff;height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #d23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#d23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent #555 transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:#555 transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px!important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;-moz-border-radius:5px;-webkit-border-radius:5px;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:url("tab_b.png")}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:#fff}} \ No newline at end of file diff --git a/library.properties b/library.properties index 98952df..35a16a7 100755 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=AccelStepper -version=1.57.1 +version=1.58 author=Mike McCauley maintainer=Patrick Wasp sentence=Allows Arduino boards to control a variety of stepper motors. diff --git a/src/AccelStepper.cpp b/src/AccelStepper.cpp index 2bc17bd..981d046 100644 --- a/src/AccelStepper.cpp +++ b/src/AccelStepper.cpp @@ -204,7 +204,8 @@ AccelStepper::AccelStepper(uint8_t interface, uint8_t pin1, uint8_t pin2, uint8_ _pin[1] = pin2; _pin[2] = pin3; _pin[3] = pin4; - + _enableInverted = false; + // NEW _n = 0; _c0 = 0.0; diff --git a/src/AccelStepper.h b/src/AccelStepper.h index c4fd852..84c738c 100644 --- a/src/AccelStepper.h +++ b/src/AccelStepper.h @@ -23,7 +23,7 @@ /// The latest version of this documentation can be downloaded from /// http://www.airspayce.com/mikem/arduino/AccelStepper /// The version of the package that this documentation refers to can be downloaded -/// from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.57.zip +/// from http://www.airspayce.com/mikem/arduino/AccelStepper/AccelStepper-1.58.zip /// /// Example Arduino programs are included to show the main modes of use. /// @@ -240,6 +240,8 @@ /// \version 1.57 2017-03-28 /// _direction moved to protected at the request of Rudy Ercek. /// setMaxSpeed() and setAcceleration() now correct negative values to be positive. +/// \version 1.58 2018-04-13 +/// Add initialisation for _enableInverted in constructor. /// /// \author Mike McCauley (mikem@airspayce.com) DO NOT CONTACT THE AUTHOR DIRECTLY: USE THE LISTS // Copyright (C) 2009-2013 Mike McCauley