PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

1281 lines
80KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.11"/>
  7. <title>AccelStepper: AccelStepper Class Reference</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td id="projectalign" style="padding-left: 0.5em;">
  20. <div id="projectname">AccelStepper
  21. </div>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. </div>
  27. <!-- end header part -->
  28. <!-- Generated by Doxygen 1.8.11 -->
  29. <div id="navrow1" class="tabs">
  30. <ul class="tablist">
  31. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  32. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  33. <li><a href="files.html"><span>Files</span></a></li>
  34. <li><a href="examples.html"><span>Examples</span></a></li>
  35. </ul>
  36. </div>
  37. <div id="navrow2" class="tabs2">
  38. <ul class="tablist">
  39. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  40. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  41. </ul>
  42. </div>
  43. </div><!-- top -->
  44. <div class="header">
  45. <div class="summary">
  46. <a href="#pub-types">Public Types</a> &#124;
  47. <a href="#pub-methods">Public Member Functions</a> &#124;
  48. <a href="#pro-types">Protected Types</a> &#124;
  49. <a href="#pro-methods">Protected Member Functions</a> &#124;
  50. <a href="#pro-attribs">Protected Attributes</a> &#124;
  51. <a href="classAccelStepper-members.html">List of all members</a> </div>
  52. <div class="headertitle">
  53. <div class="title">AccelStepper Class Reference</div> </div>
  54. </div><!--header-->
  55. <div class="contents">
  56. <p>Support for stepper motors with acceleration etc.
  57. <a href="classAccelStepper.html#details">More...</a></p>
  58. <p><code>#include &lt;<a class="el" href="AccelStepper_8h_source.html">AccelStepper.h</a>&gt;</code></p>
  59. <table class="memberdecls">
  60. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  61. Public Types</h2></td></tr>
  62. <tr class="memitem:a73bdecf1273d98d8c5fbcb764cabeea5"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5">MotorInterfaceType</a> { <br />
  63. &#160;&#160;<a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5af5bb99ad9d67ad2d85f840e3abcfe068">FUNCTION</a> = 0,
  64. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23">DRIVER</a> = 1,
  65. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a62a305b52f749ff8c89138273fbb012d">FULL2WIRE</a> = 2,
  66. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996">FULL3WIRE</a> = 3,
  67. <br />
  68. &#160;&#160;<a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">FULL4WIRE</a> = 4,
  69. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f">HALF3WIRE</a> = 6,
  70. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07">HALF4WIRE</a> = 8
  71. <br />
  72. }<tr class="memdesc:a73bdecf1273d98d8c5fbcb764cabeea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Symbolic names for number of pins. Use this in the pins argument the <a class="el" href="classAccelStepper.html" title="Support for stepper motors with acceleration etc. ">AccelStepper</a> constructor to provide a symbolic name for the number of pins to use. <a href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5">More...</a><br /></td></tr>
  73. </td></tr>
  74. <tr class="separator:a73bdecf1273d98d8c5fbcb764cabeea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. </table><table class="memberdecls">
  76. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  77. Public Member Functions</h2></td></tr>
  78. <tr class="memitem:a3bc75bd6571b98a6177838ca81ac39ab"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a3bc75bd6571b98a6177838ca81ac39ab">AccelStepper</a> (uint8_t interface=<a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">AccelStepper::FULL4WIRE</a>, uint8_t pin1=2, uint8_t pin2=3, uint8_t pin3=4, uint8_t pin4=5, bool enable=true)</td></tr>
  79. <tr class="separator:a3bc75bd6571b98a6177838ca81ac39ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. <tr class="memitem:afa3061ce813303a8f2fa206ee8d012bd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#afa3061ce813303a8f2fa206ee8d012bd">AccelStepper</a> (void(*forward)(), void(*backward)())</td></tr>
  81. <tr class="separator:afa3061ce813303a8f2fa206ee8d012bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:ace236ede35f87c63d18da25810ec9736"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo</a> (long absolute)</td></tr>
  83. <tr class="separator:ace236ede35f87c63d18da25810ec9736"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:a68942c66e78fb7f7b5f0cdade6eb7f06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a68942c66e78fb7f7b5f0cdade6eb7f06">move</a> (long relative)</td></tr>
  85. <tr class="separator:a68942c66e78fb7f7b5f0cdade6eb7f06"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. <tr class="memitem:a608b2395b64ac15451d16d0371fe13ce"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run</a> ()</td></tr>
  87. <tr class="separator:a608b2395b64ac15451d16d0371fe13ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:aa4a6bdf99f698284faaeb5542b0b7514"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed</a> ()</td></tr>
  89. <tr class="separator:aa4a6bdf99f698284faaeb5542b0b7514"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:abee8d466229b87accba33d6ec929c18f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#abee8d466229b87accba33d6ec929c18f">setMaxSpeed</a> (float <a class="el" href="classAccelStepper.html#a4f0989d0ae264e7eadfe1fa720769fb6">speed</a>)</td></tr>
  91. <tr class="separator:abee8d466229b87accba33d6ec929c18f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:a6123a1dfb4495d8bd2646288eae60d7f"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a6123a1dfb4495d8bd2646288eae60d7f">maxSpeed</a> ()</td></tr>
  93. <tr class="separator:a6123a1dfb4495d8bd2646288eae60d7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:adfb19e3cd2a028a1fe78131787604fd1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration</a> (float acceleration)</td></tr>
  95. <tr class="separator:adfb19e3cd2a028a1fe78131787604fd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ae79c49ad69d5ccc9da0ee691fa4ca235"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#ae79c49ad69d5ccc9da0ee691fa4ca235">setSpeed</a> (float <a class="el" href="classAccelStepper.html#a4f0989d0ae264e7eadfe1fa720769fb6">speed</a>)</td></tr>
  97. <tr class="separator:ae79c49ad69d5ccc9da0ee691fa4ca235"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:a4f0989d0ae264e7eadfe1fa720769fb6"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a4f0989d0ae264e7eadfe1fa720769fb6">speed</a> ()</td></tr>
  99. <tr class="separator:a4f0989d0ae264e7eadfe1fa720769fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:a748665c3962e66fbc0e9373eb14c69c1"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a748665c3962e66fbc0e9373eb14c69c1">distanceToGo</a> ()</td></tr>
  101. <tr class="separator:a748665c3962e66fbc0e9373eb14c69c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:a96685e0945b7cf75d5959da679cd911e"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a96685e0945b7cf75d5959da679cd911e">targetPosition</a> ()</td></tr>
  103. <tr class="separator:a96685e0945b7cf75d5959da679cd911e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a5dce13ab2a1b02b8f443318886bf6fc5"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a5dce13ab2a1b02b8f443318886bf6fc5">currentPosition</a> ()</td></tr>
  105. <tr class="separator:a5dce13ab2a1b02b8f443318886bf6fc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:a9d917f014317fb9d3b5dc14e66f6c689"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a9d917f014317fb9d3b5dc14e66f6c689">setCurrentPosition</a> (long position)</td></tr>
  107. <tr class="separator:a9d917f014317fb9d3b5dc14e66f6c689"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a344f58fef8cc34ac5aa75ba4b665d21c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a344f58fef8cc34ac5aa75ba4b665d21c">runToPosition</a> ()</td></tr>
  109. <tr class="separator:a344f58fef8cc34ac5aa75ba4b665d21c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a9270d20336e76ac1fd5bcd5b9c34f301"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a9270d20336e76ac1fd5bcd5b9c34f301">runSpeedToPosition</a> ()</td></tr>
  111. <tr class="separator:a9270d20336e76ac1fd5bcd5b9c34f301"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:a176c5d2e4c2f21e9e92b12e39a6f0e67"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a176c5d2e4c2f21e9e92b12e39a6f0e67">runToNewPosition</a> (long position)</td></tr>
  113. <tr class="separator:a176c5d2e4c2f21e9e92b12e39a6f0e67"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:a638817b85aed9d5cd15c76a76c00aced"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a638817b85aed9d5cd15c76a76c00aced">stop</a> ()</td></tr>
  115. <tr class="separator:a638817b85aed9d5cd15c76a76c00aced"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a3591e29a236e2935afd7f64ff6c22006"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a3591e29a236e2935afd7f64ff6c22006">disableOutputs</a> ()</td></tr>
  117. <tr class="separator:a3591e29a236e2935afd7f64ff6c22006"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:aa279a50d30d0413f570c692cff071643"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs</a> ()</td></tr>
  119. <tr class="separator:aa279a50d30d0413f570c692cff071643"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:af4d3818e691dad5dc518308796ccf154"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#af4d3818e691dad5dc518308796ccf154">setMinPulseWidth</a> (unsigned int minWidth)</td></tr>
  121. <tr class="separator:af4d3818e691dad5dc518308796ccf154"><td class="memSeparator" colspan="2">&#160;</td></tr>
  122. <tr class="memitem:a56a81c5f00d02ca19646718e88e974c0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a56a81c5f00d02ca19646718e88e974c0">setEnablePin</a> (uint8_t enablePin=0xff)</td></tr>
  123. <tr class="separator:a56a81c5f00d02ca19646718e88e974c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:ac62cae590c2f9c303519a3a1c4adc8ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#ac62cae590c2f9c303519a3a1c4adc8ab">setPinsInverted</a> (bool directionInvert=false, bool stepInvert=false, bool enableInvert=false)</td></tr>
  125. <tr class="separator:ac62cae590c2f9c303519a3a1c4adc8ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a38298ac2dd852fb22259f6c4bbe08c94"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a38298ac2dd852fb22259f6c4bbe08c94">setPinsInverted</a> (bool pin1Invert, bool pin2Invert, bool pin3Invert, bool pin4Invert, bool enableInvert)</td></tr>
  127. <tr class="separator:a38298ac2dd852fb22259f6c4bbe08c94"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:a3a60cc0b962f8ceb81ee1e6f36443ceb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a3a60cc0b962f8ceb81ee1e6f36443ceb">isRunning</a> ()</td></tr>
  129. <tr class="separator:a3a60cc0b962f8ceb81ee1e6f36443ceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. </table><table class="memberdecls">
  131. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-types"></a>
  132. Protected Types</h2></td></tr>
  133. <tr class="memitem:a7468f91a925c689c3ba250f8d074d228"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228">Direction</a> { <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a> = 0,
  134. <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c">DIRECTION_CW</a> = 1
  135. }<tr class="memdesc:a7468f91a925c689c3ba250f8d074d228"><td class="mdescLeft">&#160;</td><td class="mdescRight">Direction indicator Symbolic names for the direction the motor is turning. <a href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228">More...</a><br /></td></tr>
  136. </td></tr>
  137. <tr class="separator:a7468f91a925c689c3ba250f8d074d228"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. </table><table class="memberdecls">
  139. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  140. Protected Member Functions</h2></td></tr>
  141. <tr class="memitem:affbee789b5c19165846cf0409860ae79"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed</a> ()</td></tr>
  142. <tr class="separator:affbee789b5c19165846cf0409860ae79"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:af3c2516b6ce7c1ecbc2004107bb2a9ce"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins</a> (uint8_t mask)</td></tr>
  144. <tr class="separator:af3c2516b6ce7c1ecbc2004107bb2a9ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a8a419121702399d8ac66df4cc47481f4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a> (long step)</td></tr>
  146. <tr class="separator:a8a419121702399d8ac66df4cc47481f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  147. <tr class="memitem:aa2913db789e6fa05756579ff82fe6e7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#aa2913db789e6fa05756579ff82fe6e7e">step0</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  148. <tr class="separator:aa2913db789e6fa05756579ff82fe6e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a63ef416bc039da539294e84a41e7d7dc"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a63ef416bc039da539294e84a41e7d7dc">step1</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  150. <tr class="separator:a63ef416bc039da539294e84a41e7d7dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:a674e48a6bf99e7ad1f013c1e4414565a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a674e48a6bf99e7ad1f013c1e4414565a">step2</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  152. <tr class="separator:a674e48a6bf99e7ad1f013c1e4414565a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:ad73c61aade2e10243dfb02aefa7ab8fd"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#ad73c61aade2e10243dfb02aefa7ab8fd">step3</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  154. <tr class="separator:ad73c61aade2e10243dfb02aefa7ab8fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a8910bd9218a54dfb7e2372a6d0bcca0c"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a8910bd9218a54dfb7e2372a6d0bcca0c">step4</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  156. <tr class="separator:a8910bd9218a54dfb7e2372a6d0bcca0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:a4b0faf1ebc0c584ab606c0c0f66986b0"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a4b0faf1ebc0c584ab606c0c0f66986b0">step6</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  158. <tr class="separator:a4b0faf1ebc0c584ab606c0c0f66986b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87">step8</a> (long <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step</a>)</td></tr>
  160. <tr class="separator:aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. </table><table class="memberdecls">
  162. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
  163. Protected Attributes</h2></td></tr>
  164. <tr class="memitem:a35162cdf8ed9a98f98984c177d5ade58"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a></td></tr>
  165. <tr class="separator:a35162cdf8ed9a98f98984c177d5ade58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. </table>
  167. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  168. <div class="textblock"><p>Support for stepper motors with acceleration etc. </p>
  169. <p>This defines a single 2 or 4 pin stepper motor, or stepper moter with fdriver chip, with optional acceleration, deceleration, absolute positioning commands etc. Multiple simultaneous steppers are supported, all moving at different speeds and accelerations.</p>
  170. <dl class="section user"><dt>Operation</dt><dd>This module operates by computing a step time in microseconds. The step time is recomputed after each step and after speed and acceleration parameters are changed by the caller. The time of each step is recorded in microseconds. The <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> function steps the motor once if a new step is due. The <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> function must be called frequently until the motor is in the desired position, after which time <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> will do nothing.</dd></dl>
  171. <dl class="section user"><dt>Positioning</dt><dd>Positions are specified by a signed long integer. At construction time, the current position of the motor is consider to be 0. Positive positions are clockwise from the initial position; negative positions are anticlockwise. The current position can be altered for instance after initialization positioning.</dd></dl>
  172. <dl class="section user"><dt>Caveats</dt><dd>This is an open loop controller: If the motor stalls or is oversped, <a class="el" href="classAccelStepper.html" title="Support for stepper motors with acceleration etc. ">AccelStepper</a> will not have a correct idea of where the motor really is (since there is no feedback of the motor's real position. We only know where we <em>think</em> it is, relative to the initial starting point).</dd></dl>
  173. <dl class="section user"><dt>Performance</dt><dd>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 <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> function is called frequently enough to step the motor whenever required for the speed set. Calling <a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration()</a> is expensive, since it requires a square root to be calculated.</dd></dl>
  174. <p>Gregor Christandl reports that with an Arduino Due and a simple test program, he measured 43163 steps per second using <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>, and 16214 steps per second using <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a>; </p>
  175. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  176. <a class="anchor" id="a7468f91a925c689c3ba250f8d074d228"></a>
  177. <div class="memitem">
  178. <div class="memproto">
  179. <table class="mlabels">
  180. <tr>
  181. <td class="mlabels-left">
  182. <table class="memname">
  183. <tr>
  184. <td class="memname">enum <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228">AccelStepper::Direction</a></td>
  185. </tr>
  186. </table>
  187. </td>
  188. <td class="mlabels-right">
  189. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  190. </tr>
  191. </table>
  192. </div><div class="memdoc">
  193. <p>Direction indicator Symbolic names for the direction the motor is turning. </p>
  194. <table class="fieldtable">
  195. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4"></a>DIRECTION_CCW&#160;</td><td class="fielddoc">
  196. <p>Counter-Clockwise. </p>
  197. </td></tr>
  198. <tr><td class="fieldname"><a class="anchor" id="a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c"></a>DIRECTION_CW&#160;</td><td class="fielddoc">
  199. <p>Clockwise. </p>
  200. </td></tr>
  201. </table>
  202. </div>
  203. </div>
  204. <a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5"></a>
  205. <div class="memitem">
  206. <div class="memproto">
  207. <table class="memname">
  208. <tr>
  209. <td class="memname">enum <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5">AccelStepper::MotorInterfaceType</a></td>
  210. </tr>
  211. </table>
  212. </div><div class="memdoc">
  213. <p>Symbolic names for number of pins. Use this in the pins argument the <a class="el" href="classAccelStepper.html" title="Support for stepper motors with acceleration etc. ">AccelStepper</a> constructor to provide a symbolic name for the number of pins to use. </p>
  214. <table class="fieldtable">
  215. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5af5bb99ad9d67ad2d85f840e3abcfe068"></a>FUNCTION&#160;</td><td class="fielddoc">
  216. <p>Use the functional interface, implementing your own driver functions (internal use only) </p>
  217. </td></tr>
  218. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23"></a>DRIVER&#160;</td><td class="fielddoc">
  219. <p>Stepper Driver, 2 driver pins required. </p>
  220. </td></tr>
  221. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5a62a305b52f749ff8c89138273fbb012d"></a>FULL2WIRE&#160;</td><td class="fielddoc">
  222. <p>2 wire stepper, 2 motor pins required </p>
  223. </td></tr>
  224. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996"></a>FULL3WIRE&#160;</td><td class="fielddoc">
  225. <p>3 wire stepper, such as HDD spindle, 3 motor pins required </p>
  226. </td></tr>
  227. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f"></a>FULL4WIRE&#160;</td><td class="fielddoc">
  228. <p>4 wire full stepper, 4 motor pins required </p>
  229. </td></tr>
  230. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f"></a>HALF3WIRE&#160;</td><td class="fielddoc">
  231. <p>3 wire half stepper, such as HDD spindle, 3 motor pins required </p>
  232. </td></tr>
  233. <tr><td class="fieldname"><a class="anchor" id="a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07"></a>HALF4WIRE&#160;</td><td class="fielddoc">
  234. <p>4 wire half stepper, 4 motor pins required </p>
  235. </td></tr>
  236. </table>
  237. </div>
  238. </div>
  239. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  240. <a class="anchor" id="a3bc75bd6571b98a6177838ca81ac39ab"></a>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <table class="memname">
  244. <tr>
  245. <td class="memname">AccelStepper::AccelStepper </td>
  246. <td>(</td>
  247. <td class="paramtype">uint8_t&#160;</td>
  248. <td class="paramname"><em>interface</em> = <code><a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">AccelStepper::FULL4WIRE</a></code>, </td>
  249. </tr>
  250. <tr>
  251. <td class="paramkey"></td>
  252. <td></td>
  253. <td class="paramtype">uint8_t&#160;</td>
  254. <td class="paramname"><em>pin1</em> = <code>2</code>, </td>
  255. </tr>
  256. <tr>
  257. <td class="paramkey"></td>
  258. <td></td>
  259. <td class="paramtype">uint8_t&#160;</td>
  260. <td class="paramname"><em>pin2</em> = <code>3</code>, </td>
  261. </tr>
  262. <tr>
  263. <td class="paramkey"></td>
  264. <td></td>
  265. <td class="paramtype">uint8_t&#160;</td>
  266. <td class="paramname"><em>pin3</em> = <code>4</code>, </td>
  267. </tr>
  268. <tr>
  269. <td class="paramkey"></td>
  270. <td></td>
  271. <td class="paramtype">uint8_t&#160;</td>
  272. <td class="paramname"><em>pin4</em> = <code>5</code>, </td>
  273. </tr>
  274. <tr>
  275. <td class="paramkey"></td>
  276. <td></td>
  277. <td class="paramtype">bool&#160;</td>
  278. <td class="paramname"><em>enable</em> = <code>true</code>&#160;</td>
  279. </tr>
  280. <tr>
  281. <td></td>
  282. <td>)</td>
  283. <td></td><td></td>
  284. </tr>
  285. </table>
  286. </div><div class="memdoc">
  287. <p>Constructor. You can have multiple simultaneous steppers, all moving at different speeds and accelerations, provided you call their <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> functions at frequent enough intervals. Current Position is set to 0, target position is set to 0. MaxSpeed and Acceleration default to 1.0. The motor pins will be initialised to OUTPUT mode during the constructor by a call to <a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  288. <table class="params">
  289. <tr><td class="paramdir">[in]</td><td class="paramname">interface</td><td>Number of pins to interface to. Integer values are supported, but it is preferred to use the <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5">MotorInterfaceType</a> symbolic names. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23" title="Stepper Driver, 2 driver pins required. ">AccelStepper::DRIVER</a> (1) means a stepper driver (with Step and Direction pins). If an enable line is also needed, call <a class="el" href="classAccelStepper.html#a56a81c5f00d02ca19646718e88e974c0">setEnablePin()</a> after construction. You may also invert the pins using <a class="el" href="classAccelStepper.html#ac62cae590c2f9c303519a3a1c4adc8ab">setPinsInverted()</a>. <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a62a305b52f749ff8c89138273fbb012d" title="2 wire stepper, 2 motor pins required ">AccelStepper::FULL2WIRE</a> (2) means a 2 wire stepper (2 pins required). <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996" title="3 wire stepper, such as HDD spindle, 3 motor pins required ">AccelStepper::FULL3WIRE</a> (3) means a 3 wire stepper, such as HDD spindle (3 pins required). <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f" title="4 wire full stepper, 4 motor pins required ">AccelStepper::FULL4WIRE</a> (4) means a 4 wire stepper (4 pins required). <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f" title="3 wire half stepper, such as HDD spindle, 3 motor pins required ">AccelStepper::HALF3WIRE</a> (6) means a 3 wire half stepper, such as HDD spindle (3 pins required) <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07" title="4 wire half stepper, 4 motor pins required ">AccelStepper::HALF4WIRE</a> (8) means a 4 wire half stepper (4 pins required) Defaults to <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f" title="4 wire full stepper, 4 motor pins required ">AccelStepper::FULL4WIRE</a> (4) pins. </td></tr>
  290. <tr><td class="paramdir">[in]</td><td class="paramname">pin1</td><td>Arduino digital pin number for motor pin 1. Defaults to pin 2. For a <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23" title="Stepper Driver, 2 driver pins required. ">AccelStepper::DRIVER</a> (interface==1), this is the Step input to the driver. Low to high transition means to step) </td></tr>
  291. <tr><td class="paramdir">[in]</td><td class="paramname">pin2</td><td>Arduino digital pin number for motor pin 2. Defaults to pin 3. For a <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23" title="Stepper Driver, 2 driver pins required. ">AccelStepper::DRIVER</a> (interface==1), this is the Direction input the driver. High means forward. </td></tr>
  292. <tr><td class="paramdir">[in]</td><td class="paramname">pin3</td><td>Arduino digital pin number for motor pin 3. Defaults to pin 4. </td></tr>
  293. <tr><td class="paramdir">[in]</td><td class="paramname">pin4</td><td>Arduino digital pin number for motor pin 4. Defaults to pin 5. </td></tr>
  294. <tr><td class="paramdir">[in]</td><td class="paramname">enable</td><td>If this is true (the default), <a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs()</a> will be called to enable the output pins at construction time. </td></tr>
  295. </table>
  296. </dd>
  297. </dl>
  298. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a>, <a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs()</a>, and <a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration()</a>.</p>
  299. </div>
  300. </div>
  301. <a class="anchor" id="afa3061ce813303a8f2fa206ee8d012bd"></a>
  302. <div class="memitem">
  303. <div class="memproto">
  304. <table class="memname">
  305. <tr>
  306. <td class="memname">AccelStepper::AccelStepper </td>
  307. <td>(</td>
  308. <td class="paramtype">void(*)()&#160;</td>
  309. <td class="paramname"><em>forward</em>, </td>
  310. </tr>
  311. <tr>
  312. <td class="paramkey"></td>
  313. <td></td>
  314. <td class="paramtype">void(*)()&#160;</td>
  315. <td class="paramname"><em>backward</em>&#160;</td>
  316. </tr>
  317. <tr>
  318. <td></td>
  319. <td>)</td>
  320. <td></td><td></td>
  321. </tr>
  322. </table>
  323. </div><div class="memdoc">
  324. <p>Alternate Constructor which will call your own functions for forward and backward steps. You can have multiple simultaneous steppers, all moving at different speeds and accelerations, provided you call their <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> functions at frequent enough intervals. Current Position is set to 0, target position is set to 0. MaxSpeed and Acceleration default to 1.0. Any motor initialization should happen before hand, no pins are used or initialized. </p><dl class="params"><dt>Parameters</dt><dd>
  325. <table class="params">
  326. <tr><td class="paramdir">[in]</td><td class="paramname">forward</td><td>void-returning procedure that will make a forward step </td></tr>
  327. <tr><td class="paramdir">[in]</td><td class="paramname">backward</td><td>void-returning procedure that will make a backward step </td></tr>
  328. </table>
  329. </dd>
  330. </dl>
  331. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a>, and <a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration()</a>.</p>
  332. </div>
  333. </div>
  334. <h2 class="groupheader">Member Function Documentation</h2>
  335. <a class="anchor" id="affbee789b5c19165846cf0409860ae79"></a>
  336. <div class="memitem">
  337. <div class="memproto">
  338. <table class="mlabels">
  339. <tr>
  340. <td class="mlabels-left">
  341. <table class="memname">
  342. <tr>
  343. <td class="memname">void AccelStepper::computeNewSpeed </td>
  344. <td>(</td>
  345. <td class="paramname"></td><td>)</td>
  346. <td></td>
  347. </tr>
  348. </table>
  349. </td>
  350. <td class="mlabels-right">
  351. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  352. </tr>
  353. </table>
  354. </div><div class="memdoc">
  355. <p>Forces the library to compute a new instantaneous speed and set that as the current speed. It is called by the library: </p><ul>
  356. <li>after each step </li>
  357. <li>after change to maxSpeed through <a class="el" href="classAccelStepper.html#abee8d466229b87accba33d6ec929c18f">setMaxSpeed()</a> </li>
  358. <li>after change to acceleration through <a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration()</a> </li>
  359. <li>after change to target position (relative or absolute) through <a class="el" href="classAccelStepper.html#a68942c66e78fb7f7b5f0cdade6eb7f06">move()</a> or <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a> </li>
  360. </ul>
  361. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c">DIRECTION_CW</a>, and <a class="el" href="classAccelStepper.html#a748665c3962e66fbc0e9373eb14c69c1">distanceToGo()</a>.</p>
  362. <p>Referenced by <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a>, <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a>, <a class="el" href="classAccelStepper.html#adfb19e3cd2a028a1fe78131787604fd1">setAcceleration()</a>, and <a class="el" href="classAccelStepper.html#abee8d466229b87accba33d6ec929c18f">setMaxSpeed()</a>.</p>
  363. </div>
  364. </div>
  365. <a class="anchor" id="a5dce13ab2a1b02b8f443318886bf6fc5"></a>
  366. <div class="memitem">
  367. <div class="memproto">
  368. <table class="memname">
  369. <tr>
  370. <td class="memname">long AccelStepper::currentPosition </td>
  371. <td>(</td>
  372. <td class="paramname"></td><td>)</td>
  373. <td></td>
  374. </tr>
  375. </table>
  376. </div><div class="memdoc">
  377. <p>The currently motor position. </p><dl class="section return"><dt>Returns</dt><dd>the current motor position in steps. Positive is clockwise from the 0 position. </dd></dl>
  378. <p>Referenced by <a class="el" href="classMultiStepper.html#a291fec32a79390b6eb00296cffac49ee">MultiStepper::moveTo()</a>.</p>
  379. </div>
  380. </div>
  381. <a class="anchor" id="a3591e29a236e2935afd7f64ff6c22006"></a>
  382. <div class="memitem">
  383. <div class="memproto">
  384. <table class="mlabels">
  385. <tr>
  386. <td class="mlabels-left">
  387. <table class="memname">
  388. <tr>
  389. <td class="memname">void AccelStepper::disableOutputs </td>
  390. <td>(</td>
  391. <td class="paramname"></td><td>)</td>
  392. <td></td>
  393. </tr>
  394. </table>
  395. </td>
  396. <td class="mlabels-right">
  397. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  398. </tr>
  399. </table>
  400. </div><div class="memdoc">
  401. <p>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 <a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs()</a> before stepping again. If the enable Pin is defined, sets it to OUTPUT mode and clears the pin to disabled. </p>
  402. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  403. </div>
  404. </div>
  405. <a class="anchor" id="a748665c3962e66fbc0e9373eb14c69c1"></a>
  406. <div class="memitem">
  407. <div class="memproto">
  408. <table class="memname">
  409. <tr>
  410. <td class="memname">long AccelStepper::distanceToGo </td>
  411. <td>(</td>
  412. <td class="paramname"></td><td>)</td>
  413. <td></td>
  414. </tr>
  415. </table>
  416. </div><div class="memdoc">
  417. <p>The distance from the current position to the target position. </p><dl class="section return"><dt>Returns</dt><dd>the distance from the current position to the target position in steps. Positive is clockwise from the current position. </dd></dl>
  418. <p>Referenced by <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>, and <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a>.</p>
  419. </div>
  420. </div>
  421. <a class="anchor" id="aa279a50d30d0413f570c692cff071643"></a>
  422. <div class="memitem">
  423. <div class="memproto">
  424. <table class="mlabels">
  425. <tr>
  426. <td class="mlabels-left">
  427. <table class="memname">
  428. <tr>
  429. <td class="memname">void AccelStepper::enableOutputs </td>
  430. <td>(</td>
  431. <td class="paramname"></td><td>)</td>
  432. <td></td>
  433. </tr>
  434. </table>
  435. </td>
  436. <td class="mlabels-right">
  437. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  438. </tr>
  439. </table>
  440. </div><div class="memdoc">
  441. <p>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. </p>
  442. <p>References <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996">FULL3WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">FULL4WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f">HALF3WIRE</a>, and <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07">HALF4WIRE</a>.</p>
  443. <p>Referenced by <a class="el" href="classAccelStepper.html#a3bc75bd6571b98a6177838ca81ac39ab">AccelStepper()</a>.</p>
  444. </div>
  445. </div>
  446. <a class="anchor" id="a3a60cc0b962f8ceb81ee1e6f36443ceb"></a>
  447. <div class="memitem">
  448. <div class="memproto">
  449. <table class="memname">
  450. <tr>
  451. <td class="memname">bool AccelStepper::isRunning </td>
  452. <td>(</td>
  453. <td class="paramname"></td><td>)</td>
  454. <td></td>
  455. </tr>
  456. </table>
  457. </div><div class="memdoc">
  458. <p>Checks to see if the motor is currently running to a target </p><dl class="section return"><dt>Returns</dt><dd>true if the speed is not zero or not at the target position </dd></dl>
  459. </div>
  460. </div>
  461. <a class="anchor" id="a6123a1dfb4495d8bd2646288eae60d7f"></a>
  462. <div class="memitem">
  463. <div class="memproto">
  464. <table class="memname">
  465. <tr>
  466. <td class="memname">float AccelStepper::maxSpeed </td>
  467. <td>(</td>
  468. <td class="paramname"></td><td>)</td>
  469. <td></td>
  470. </tr>
  471. </table>
  472. </div><div class="memdoc">
  473. <p>returns the maximum speed configured for this stepper that was previously set by <a class="el" href="classAccelStepper.html#abee8d466229b87accba33d6ec929c18f">setMaxSpeed()</a>; </p><dl class="section return"><dt>Returns</dt><dd>The currently configured maximum speed </dd></dl>
  474. <p>Referenced by <a class="el" href="classMultiStepper.html#a291fec32a79390b6eb00296cffac49ee">MultiStepper::moveTo()</a>.</p>
  475. </div>
  476. </div>
  477. <a class="anchor" id="a68942c66e78fb7f7b5f0cdade6eb7f06"></a>
  478. <div class="memitem">
  479. <div class="memproto">
  480. <table class="memname">
  481. <tr>
  482. <td class="memname">void AccelStepper::move </td>
  483. <td>(</td>
  484. <td class="paramtype">long&#160;</td>
  485. <td class="paramname"><em>relative</em></td><td>)</td>
  486. <td></td>
  487. </tr>
  488. </table>
  489. </div><div class="memdoc">
  490. <p>Set the target position relative to the current position </p><dl class="params"><dt>Parameters</dt><dd>
  491. <table class="params">
  492. <tr><td class="paramdir">[in]</td><td class="paramname">relative</td><td>The desired position relative to the current position. Negative is anticlockwise from the current position. </td></tr>
  493. </table>
  494. </dd>
  495. </dl>
  496. <p>References <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a>.</p>
  497. <p>Referenced by <a class="el" href="classAccelStepper.html#a638817b85aed9d5cd15c76a76c00aced">stop()</a>.</p>
  498. </div>
  499. </div>
  500. <a class="anchor" id="ace236ede35f87c63d18da25810ec9736"></a>
  501. <div class="memitem">
  502. <div class="memproto">
  503. <table class="memname">
  504. <tr>
  505. <td class="memname">void AccelStepper::moveTo </td>
  506. <td>(</td>
  507. <td class="paramtype">long&#160;</td>
  508. <td class="paramname"><em>absolute</em></td><td>)</td>
  509. <td></td>
  510. </tr>
  511. </table>
  512. </div><div class="memdoc">
  513. <p>Set the target position. The <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> function will try to move the motor (at most one step per call) from the current position to the target position set by the most recent call to this function. Caution: <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a> also recalculates the speed for the next step. If you are trying to use constant speed movements, you should call <a class="el" href="classAccelStepper.html#ae79c49ad69d5ccc9da0ee691fa4ca235">setSpeed()</a> after calling <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  514. <table class="params">
  515. <tr><td class="paramdir">[in]</td><td class="paramname">absolute</td><td>The desired absolute position. Negative is anticlockwise from the 0 position. </td></tr>
  516. </table>
  517. </dd>
  518. </dl>
  519. <p>References <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>.</p>
  520. <p>Referenced by <a class="el" href="classAccelStepper.html#a68942c66e78fb7f7b5f0cdade6eb7f06">move()</a>, <a class="el" href="classMultiStepper.html#a291fec32a79390b6eb00296cffac49ee">MultiStepper::moveTo()</a>, and <a class="el" href="classAccelStepper.html#a176c5d2e4c2f21e9e92b12e39a6f0e67">runToNewPosition()</a>.</p>
  521. </div>
  522. </div>
  523. <a class="anchor" id="a608b2395b64ac15451d16d0371fe13ce"></a>
  524. <div class="memitem">
  525. <div class="memproto">
  526. <table class="memname">
  527. <tr>
  528. <td class="memname">boolean AccelStepper::run </td>
  529. <td>(</td>
  530. <td class="paramname"></td><td>)</td>
  531. <td></td>
  532. </tr>
  533. </table>
  534. </div><div class="memdoc">
  535. <p>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 <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> 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. </p><dl class="section return"><dt>Returns</dt><dd>true if the motor is still running to the target position. </dd></dl>
  536. <p>References <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>, <a class="el" href="classAccelStepper.html#a748665c3962e66fbc0e9373eb14c69c1">distanceToGo()</a>, and <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>.</p>
  537. <p>Referenced by <a class="el" href="classAccelStepper.html#a344f58fef8cc34ac5aa75ba4b665d21c">runToPosition()</a>.</p>
  538. </div>
  539. </div>
  540. <a class="anchor" id="aa4a6bdf99f698284faaeb5542b0b7514"></a>
  541. <div class="memitem">
  542. <div class="memproto">
  543. <table class="memname">
  544. <tr>
  545. <td class="memname">boolean AccelStepper::runSpeed </td>
  546. <td>(</td>
  547. <td class="paramname"></td><td>)</td>
  548. <td></td>
  549. </tr>
  550. </table>
  551. </div><div class="memdoc">
  552. <p>Poll the motor and step it if a step is due, implementing a constant speed as set by the most recent call to <a class="el" href="classAccelStepper.html#ae79c49ad69d5ccc9da0ee691fa4ca235">setSpeed()</a>. You must call this as frequently as possible, but at least once per step interval, </p><dl class="section return"><dt>Returns</dt><dd>true if the motor was stepped. </dd></dl>
  553. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c">DIRECTION_CW</a>, and <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  554. <p>Referenced by <a class="el" href="classMultiStepper.html#a26c2f53b1e7ddf5d5dfb333f6fb7fb92">MultiStepper::run()</a>, <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a>, and <a class="el" href="classAccelStepper.html#a9270d20336e76ac1fd5bcd5b9c34f301">runSpeedToPosition()</a>.</p>
  555. </div>
  556. </div>
  557. <a class="anchor" id="a9270d20336e76ac1fd5bcd5b9c34f301"></a>
  558. <div class="memitem">
  559. <div class="memproto">
  560. <table class="memname">
  561. <tr>
  562. <td class="memname">boolean AccelStepper::runSpeedToPosition </td>
  563. <td>(</td>
  564. <td class="paramname"></td><td>)</td>
  565. <td></td>
  566. </tr>
  567. </table>
  568. </div><div class="memdoc">
  569. <p>Runs at the currently selected speed until the target position is reached Does not implement accelerations. </p><dl class="section return"><dt>Returns</dt><dd>true if it stepped </dd></dl>
  570. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c">DIRECTION_CW</a>, and <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>.</p>
  571. </div>
  572. </div>
  573. <a class="anchor" id="a176c5d2e4c2f21e9e92b12e39a6f0e67"></a>
  574. <div class="memitem">
  575. <div class="memproto">
  576. <table class="memname">
  577. <tr>
  578. <td class="memname">void AccelStepper::runToNewPosition </td>
  579. <td>(</td>
  580. <td class="paramtype">long&#160;</td>
  581. <td class="paramname"><em>position</em></td><td>)</td>
  582. <td></td>
  583. </tr>
  584. </table>
  585. </div><div class="memdoc">
  586. <p>Moves the motor (with acceleration/deceleration) to the new target position and blocks until it is at position. Dont use this in event loops, since it blocks. </p><dl class="params"><dt>Parameters</dt><dd>
  587. <table class="params">
  588. <tr><td class="paramdir">[in]</td><td class="paramname">position</td><td>The new target position. </td></tr>
  589. </table>
  590. </dd>
  591. </dl>
  592. <p>References <a class="el" href="classAccelStepper.html#ace236ede35f87c63d18da25810ec9736">moveTo()</a>, and <a class="el" href="classAccelStepper.html#a344f58fef8cc34ac5aa75ba4b665d21c">runToPosition()</a>.</p>
  593. </div>
  594. </div>
  595. <a class="anchor" id="a344f58fef8cc34ac5aa75ba4b665d21c"></a>
  596. <div class="memitem">
  597. <div class="memproto">
  598. <table class="memname">
  599. <tr>
  600. <td class="memname">void AccelStepper::runToPosition </td>
  601. <td>(</td>
  602. <td class="paramname"></td><td>)</td>
  603. <td></td>
  604. </tr>
  605. </table>
  606. </div><div class="memdoc">
  607. <p>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. </p>
  608. <p>References <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a>.</p>
  609. <p>Referenced by <a class="el" href="classAccelStepper.html#a176c5d2e4c2f21e9e92b12e39a6f0e67">runToNewPosition()</a>.</p>
  610. </div>
  611. </div>
  612. <a class="anchor" id="adfb19e3cd2a028a1fe78131787604fd1"></a>
  613. <div class="memitem">
  614. <div class="memproto">
  615. <table class="memname">
  616. <tr>
  617. <td class="memname">void AccelStepper::setAcceleration </td>
  618. <td>(</td>
  619. <td class="paramtype">float&#160;</td>
  620. <td class="paramname"><em>acceleration</em></td><td>)</td>
  621. <td></td>
  622. </tr>
  623. </table>
  624. </div><div class="memdoc">
  625. <p>Sets the acceleration/deceleration rate. </p><dl class="params"><dt>Parameters</dt><dd>
  626. <table class="params">
  627. <tr><td class="paramdir">[in]</td><td class="paramname">acceleration</td><td>The desired acceleration in steps per second per second. Must be &gt; 0.0. This is an expensive call since it requires a square root to be calculated. Dont call more ofthen than needed </td></tr>
  628. </table>
  629. </dd>
  630. </dl>
  631. <p>References <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>.</p>
  632. <p>Referenced by <a class="el" href="classAccelStepper.html#a3bc75bd6571b98a6177838ca81ac39ab">AccelStepper()</a>.</p>
  633. </div>
  634. </div>
  635. <a class="anchor" id="a9d917f014317fb9d3b5dc14e66f6c689"></a>
  636. <div class="memitem">
  637. <div class="memproto">
  638. <table class="memname">
  639. <tr>
  640. <td class="memname">void AccelStepper::setCurrentPosition </td>
  641. <td>(</td>
  642. <td class="paramtype">long&#160;</td>
  643. <td class="paramname"><em>position</em></td><td>)</td>
  644. <td></td>
  645. </tr>
  646. </table>
  647. </div><div class="memdoc">
  648. <p>Resets the current position of the motor, so that wherever the motor happens to be right now is considered to be the new 0 position. Useful for setting a zero position on a stepper after an initial hardware positioning move. Has the side effect of setting the current motor speed to 0. </p><dl class="params"><dt>Parameters</dt><dd>
  649. <table class="params">
  650. <tr><td class="paramdir">[in]</td><td class="paramname">position</td><td>The position in steps of wherever the motor happens to be right now. </td></tr>
  651. </table>
  652. </dd>
  653. </dl>
  654. </div>
  655. </div>
  656. <a class="anchor" id="a56a81c5f00d02ca19646718e88e974c0"></a>
  657. <div class="memitem">
  658. <div class="memproto">
  659. <table class="memname">
  660. <tr>
  661. <td class="memname">void AccelStepper::setEnablePin </td>
  662. <td>(</td>
  663. <td class="paramtype">uint8_t&#160;</td>
  664. <td class="paramname"><em>enablePin</em> = <code>0xff</code></td><td>)</td>
  665. <td></td>
  666. </tr>
  667. </table>
  668. </div><div class="memdoc">
  669. <p>Sets the enable pin number for stepper drivers. 0xFF indicates unused (default). Otherwise, if a pin is set, the pin will be turned on when <a class="el" href="classAccelStepper.html#aa279a50d30d0413f570c692cff071643">enableOutputs()</a> is called and switched off when <a class="el" href="classAccelStepper.html#a3591e29a236e2935afd7f64ff6c22006">disableOutputs()</a> is called. </p><dl class="params"><dt>Parameters</dt><dd>
  670. <table class="params">
  671. <tr><td class="paramdir">[in]</td><td class="paramname">enablePin</td><td>Arduino digital pin number for motor enable </td></tr>
  672. </table>
  673. </dd>
  674. </dl>
  675. <dl class="section see"><dt>See also</dt><dd><a class="el" href="classAccelStepper.html#ac62cae590c2f9c303519a3a1c4adc8ab">setPinsInverted</a> </dd></dl>
  676. </div>
  677. </div>
  678. <a class="anchor" id="abee8d466229b87accba33d6ec929c18f"></a>
  679. <div class="memitem">
  680. <div class="memproto">
  681. <table class="memname">
  682. <tr>
  683. <td class="memname">void AccelStepper::setMaxSpeed </td>
  684. <td>(</td>
  685. <td class="paramtype">float&#160;</td>
  686. <td class="paramname"><em>speed</em></td><td>)</td>
  687. <td></td>
  688. </tr>
  689. </table>
  690. </div><div class="memdoc">
  691. <p>Sets the maximum permitted speed. The <a class="el" href="classAccelStepper.html#a608b2395b64ac15451d16d0371fe13ce">run()</a> function will accelerate up to the speed set by this function. Caution: the maximum speed achievable depends on your processor and clock speed. </p><dl class="params"><dt>Parameters</dt><dd>
  692. <table class="params">
  693. <tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The desired maximum speed in steps per second. Must be &gt; 0. Caution: Speeds that exceed the maximum speed supported by the processor may Result in non-linear accelerations and decelerations. </td></tr>
  694. </table>
  695. </dd>
  696. </dl>
  697. <p>References <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>, and <a class="el" href="classAccelStepper.html#a4f0989d0ae264e7eadfe1fa720769fb6">speed()</a>.</p>
  698. </div>
  699. </div>
  700. <a class="anchor" id="af4d3818e691dad5dc518308796ccf154"></a>
  701. <div class="memitem">
  702. <div class="memproto">
  703. <table class="memname">
  704. <tr>
  705. <td class="memname">void AccelStepper::setMinPulseWidth </td>
  706. <td>(</td>
  707. <td class="paramtype">unsigned int&#160;</td>
  708. <td class="paramname"><em>minWidth</em></td><td>)</td>
  709. <td></td>
  710. </tr>
  711. </table>
  712. </div><div class="memdoc">
  713. <p>Sets the minimum pulse width allowed by the stepper driver. The minimum practical pulse width is approximately 20 microseconds. Times less than 20 microseconds will usually result in 20 microseconds or so. </p><dl class="params"><dt>Parameters</dt><dd>
  714. <table class="params">
  715. <tr><td class="paramdir">[in]</td><td class="paramname">minWidth</td><td>The minimum pulse width in microseconds. </td></tr>
  716. </table>
  717. </dd>
  718. </dl>
  719. </div>
  720. </div>
  721. <a class="anchor" id="af3c2516b6ce7c1ecbc2004107bb2a9ce"></a>
  722. <div class="memitem">
  723. <div class="memproto">
  724. <table class="mlabels">
  725. <tr>
  726. <td class="mlabels-left">
  727. <table class="memname">
  728. <tr>
  729. <td class="memname">void AccelStepper::setOutputPins </td>
  730. <td>(</td>
  731. <td class="paramtype">uint8_t&#160;</td>
  732. <td class="paramname"><em>mask</em></td><td>)</td>
  733. <td></td>
  734. </tr>
  735. </table>
  736. </td>
  737. <td class="mlabels-right">
  738. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  739. </tr>
  740. </table>
  741. </div><div class="memdoc">
  742. <p>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 </p>
  743. <p>References <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996">FULL3WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">FULL4WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f">HALF3WIRE</a>, and <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07">HALF4WIRE</a>.</p>
  744. <p>Referenced by <a class="el" href="classAccelStepper.html#a3591e29a236e2935afd7f64ff6c22006">disableOutputs()</a>, <a class="el" href="classAccelStepper.html#a63ef416bc039da539294e84a41e7d7dc">step1()</a>, <a class="el" href="classAccelStepper.html#a674e48a6bf99e7ad1f013c1e4414565a">step2()</a>, <a class="el" href="classAccelStepper.html#ad73c61aade2e10243dfb02aefa7ab8fd">step3()</a>, <a class="el" href="classAccelStepper.html#a8910bd9218a54dfb7e2372a6d0bcca0c">step4()</a>, <a class="el" href="classAccelStepper.html#a4b0faf1ebc0c584ab606c0c0f66986b0">step6()</a>, and <a class="el" href="classAccelStepper.html#aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87">step8()</a>.</p>
  745. </div>
  746. </div>
  747. <a class="anchor" id="ac62cae590c2f9c303519a3a1c4adc8ab"></a>
  748. <div class="memitem">
  749. <div class="memproto">
  750. <table class="memname">
  751. <tr>
  752. <td class="memname">void AccelStepper::setPinsInverted </td>
  753. <td>(</td>
  754. <td class="paramtype">bool&#160;</td>
  755. <td class="paramname"><em>directionInvert</em> = <code>false</code>, </td>
  756. </tr>
  757. <tr>
  758. <td class="paramkey"></td>
  759. <td></td>
  760. <td class="paramtype">bool&#160;</td>
  761. <td class="paramname"><em>stepInvert</em> = <code>false</code>, </td>
  762. </tr>
  763. <tr>
  764. <td class="paramkey"></td>
  765. <td></td>
  766. <td class="paramtype">bool&#160;</td>
  767. <td class="paramname"><em>enableInvert</em> = <code>false</code>&#160;</td>
  768. </tr>
  769. <tr>
  770. <td></td>
  771. <td>)</td>
  772. <td></td><td></td>
  773. </tr>
  774. </table>
  775. </div><div class="memdoc">
  776. <p>Sets the inversion for stepper driver pins </p><dl class="params"><dt>Parameters</dt><dd>
  777. <table class="params">
  778. <tr><td class="paramdir">[in]</td><td class="paramname">directionInvert</td><td>True for inverted direction pin, false for non-inverted </td></tr>
  779. <tr><td class="paramdir">[in]</td><td class="paramname">stepInvert</td><td>True for inverted step pin, false for non-inverted </td></tr>
  780. <tr><td class="paramdir">[in]</td><td class="paramname">enableInvert</td><td>True for inverted enable pin, false (default) for non-inverted </td></tr>
  781. </table>
  782. </dd>
  783. </dl>
  784. </div>
  785. </div>
  786. <a class="anchor" id="a38298ac2dd852fb22259f6c4bbe08c94"></a>
  787. <div class="memitem">
  788. <div class="memproto">
  789. <table class="memname">
  790. <tr>
  791. <td class="memname">void AccelStepper::setPinsInverted </td>
  792. <td>(</td>
  793. <td class="paramtype">bool&#160;</td>
  794. <td class="paramname"><em>pin1Invert</em>, </td>
  795. </tr>
  796. <tr>
  797. <td class="paramkey"></td>
  798. <td></td>
  799. <td class="paramtype">bool&#160;</td>
  800. <td class="paramname"><em>pin2Invert</em>, </td>
  801. </tr>
  802. <tr>
  803. <td class="paramkey"></td>
  804. <td></td>
  805. <td class="paramtype">bool&#160;</td>
  806. <td class="paramname"><em>pin3Invert</em>, </td>
  807. </tr>
  808. <tr>
  809. <td class="paramkey"></td>
  810. <td></td>
  811. <td class="paramtype">bool&#160;</td>
  812. <td class="paramname"><em>pin4Invert</em>, </td>
  813. </tr>
  814. <tr>
  815. <td class="paramkey"></td>
  816. <td></td>
  817. <td class="paramtype">bool&#160;</td>
  818. <td class="paramname"><em>enableInvert</em>&#160;</td>
  819. </tr>
  820. <tr>
  821. <td></td>
  822. <td>)</td>
  823. <td></td><td></td>
  824. </tr>
  825. </table>
  826. </div><div class="memdoc">
  827. <p>Sets the inversion for 2, 3 and 4 wire stepper pins </p><dl class="params"><dt>Parameters</dt><dd>
  828. <table class="params">
  829. <tr><td class="paramdir">[in]</td><td class="paramname">pin1Invert</td><td>True for inverted pin1, false for non-inverted </td></tr>
  830. <tr><td class="paramdir">[in]</td><td class="paramname">pin2Invert</td><td>True for inverted pin2, false for non-inverted </td></tr>
  831. <tr><td class="paramdir">[in]</td><td class="paramname">pin3Invert</td><td>True for inverted pin3, false for non-inverted </td></tr>
  832. <tr><td class="paramdir">[in]</td><td class="paramname">pin4Invert</td><td>True for inverted pin4, false for non-inverted </td></tr>
  833. <tr><td class="paramdir">[in]</td><td class="paramname">enableInvert</td><td>True for inverted enable pin, false (default) for non-inverted </td></tr>
  834. </table>
  835. </dd>
  836. </dl>
  837. </div>
  838. </div>
  839. <a class="anchor" id="ae79c49ad69d5ccc9da0ee691fa4ca235"></a>
  840. <div class="memitem">
  841. <div class="memproto">
  842. <table class="memname">
  843. <tr>
  844. <td class="memname">void AccelStepper::setSpeed </td>
  845. <td>(</td>
  846. <td class="paramtype">float&#160;</td>
  847. <td class="paramname"><em>speed</em></td><td>)</td>
  848. <td></td>
  849. </tr>
  850. </table>
  851. </div><div class="memdoc">
  852. <p>Sets the desired constant speed for use with <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  853. <table class="params">
  854. <tr><td class="paramdir">[in]</td><td class="paramname">speed</td><td>The desired constant speed in steps per second. Positive is clockwise. Speeds of more than 1000 steps per second are unreliable. Very slow speeds may be set (eg 0.00027777 for once per hour, approximately. Speed accuracy depends on the Arduino crystal. Jitter depends on how frequently you call the <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a> function. </td></tr>
  855. </table>
  856. </dd>
  857. </dl>
  858. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228a6959a4549f734bd771d418f995ba4fb4">DIRECTION_CCW</a>, <a class="el" href="classAccelStepper.html#a7468f91a925c689c3ba250f8d074d228ad604e0047f7cb47662c5a1cf6999337c">DIRECTION_CW</a>, and <a class="el" href="classAccelStepper.html#a4f0989d0ae264e7eadfe1fa720769fb6">speed()</a>.</p>
  859. <p>Referenced by <a class="el" href="classMultiStepper.html#a291fec32a79390b6eb00296cffac49ee">MultiStepper::moveTo()</a>.</p>
  860. </div>
  861. </div>
  862. <a class="anchor" id="a4f0989d0ae264e7eadfe1fa720769fb6"></a>
  863. <div class="memitem">
  864. <div class="memproto">
  865. <table class="memname">
  866. <tr>
  867. <td class="memname">float AccelStepper::speed </td>
  868. <td>(</td>
  869. <td class="paramname"></td><td>)</td>
  870. <td></td>
  871. </tr>
  872. </table>
  873. </div><div class="memdoc">
  874. <p>The most recently set speed </p><dl class="section return"><dt>Returns</dt><dd>the most recent speed in steps per second </dd></dl>
  875. <p>Referenced by <a class="el" href="classAccelStepper.html#abee8d466229b87accba33d6ec929c18f">setMaxSpeed()</a>, and <a class="el" href="classAccelStepper.html#ae79c49ad69d5ccc9da0ee691fa4ca235">setSpeed()</a>.</p>
  876. </div>
  877. </div>
  878. <a class="anchor" id="a8a419121702399d8ac66df4cc47481f4"></a>
  879. <div class="memitem">
  880. <div class="memproto">
  881. <table class="mlabels">
  882. <tr>
  883. <td class="mlabels-left">
  884. <table class="memname">
  885. <tr>
  886. <td class="memname">void AccelStepper::step </td>
  887. <td>(</td>
  888. <td class="paramtype">long&#160;</td>
  889. <td class="paramname"><em>step</em></td><td>)</td>
  890. <td></td>
  891. </tr>
  892. </table>
  893. </td>
  894. <td class="mlabels-right">
  895. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  896. </tr>
  897. </table>
  898. </div><div class="memdoc">
  899. <p>Called to execute a step. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default calls <a class="el" href="classAccelStepper.html#a63ef416bc039da539294e84a41e7d7dc">step1()</a>, <a class="el" href="classAccelStepper.html#a674e48a6bf99e7ad1f013c1e4414565a">step2()</a>, <a class="el" href="classAccelStepper.html#a8910bd9218a54dfb7e2372a6d0bcca0c">step4()</a> or <a class="el" href="classAccelStepper.html#aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87">step8()</a> depending on the number of pins defined for the stepper. </p><dl class="params"><dt>Parameters</dt><dd>
  900. <table class="params">
  901. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  902. </table>
  903. </dd>
  904. </dl>
  905. <p>References <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5ac3523e4cf6763ba518d16fec3708ef23">DRIVER</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a62a305b52f749ff8c89138273fbb012d">FULL2WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a0b8eea5cf0f8ce70b1959d2977ccc996">FULL3WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5adedd394a375190a3df8d4519c0d4dc2f">FULL4WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5af5bb99ad9d67ad2d85f840e3abcfe068">FUNCTION</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5a00c2387a5af43d8e97639699ab7a5c7f">HALF3WIRE</a>, <a class="el" href="classAccelStepper.html#a73bdecf1273d98d8c5fbcb764cabeea5aecc0900c55b777d2e885581b8c434b07">HALF4WIRE</a>, <a class="el" href="classAccelStepper.html#aa2913db789e6fa05756579ff82fe6e7e">step0()</a>, <a class="el" href="classAccelStepper.html#a63ef416bc039da539294e84a41e7d7dc">step1()</a>, <a class="el" href="classAccelStepper.html#a674e48a6bf99e7ad1f013c1e4414565a">step2()</a>, <a class="el" href="classAccelStepper.html#ad73c61aade2e10243dfb02aefa7ab8fd">step3()</a>, <a class="el" href="classAccelStepper.html#a8910bd9218a54dfb7e2372a6d0bcca0c">step4()</a>, <a class="el" href="classAccelStepper.html#a4b0faf1ebc0c584ab606c0c0f66986b0">step6()</a>, and <a class="el" href="classAccelStepper.html#aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87">step8()</a>.</p>
  906. <p>Referenced by <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>.</p>
  907. </div>
  908. </div>
  909. <a class="anchor" id="aa2913db789e6fa05756579ff82fe6e7e"></a>
  910. <div class="memitem">
  911. <div class="memproto">
  912. <table class="mlabels">
  913. <tr>
  914. <td class="mlabels-left">
  915. <table class="memname">
  916. <tr>
  917. <td class="memname">void AccelStepper::step0 </td>
  918. <td>(</td>
  919. <td class="paramtype">long&#160;</td>
  920. <td class="paramname"><em>step</em></td><td>)</td>
  921. <td></td>
  922. </tr>
  923. </table>
  924. </td>
  925. <td class="mlabels-right">
  926. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  927. </tr>
  928. </table>
  929. </div><div class="memdoc">
  930. <p>Called to execute a step using stepper functions (pins = 0) Only called when a new step is required. Calls _forward() or _backward() to perform the step </p><dl class="params"><dt>Parameters</dt><dd>
  931. <table class="params">
  932. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  933. </table>
  934. </dd>
  935. </dl>
  936. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  937. </div>
  938. </div>
  939. <a class="anchor" id="a63ef416bc039da539294e84a41e7d7dc"></a>
  940. <div class="memitem">
  941. <div class="memproto">
  942. <table class="mlabels">
  943. <tr>
  944. <td class="mlabels-left">
  945. <table class="memname">
  946. <tr>
  947. <td class="memname">void AccelStepper::step1 </td>
  948. <td>(</td>
  949. <td class="paramtype">long&#160;</td>
  950. <td class="paramname"><em>step</em></td><td>)</td>
  951. <td></td>
  952. </tr>
  953. </table>
  954. </td>
  955. <td class="mlabels-right">
  956. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  957. </tr>
  958. </table>
  959. </div><div class="memdoc">
  960. <p>Called to execute a step on a stepper driver (ie where pins == 1). Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of Step pin1 to step, and sets the output of _pin2 to the desired direction. The Step pin (_pin1) is pulsed for 1 microsecond which is the minimum STEP pulse width for the 3967 driver. </p><dl class="params"><dt>Parameters</dt><dd>
  961. <table class="params">
  962. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  963. </table>
  964. </dd>
  965. </dl>
  966. <p>References <a class="el" href="classAccelStepper.html#a35162cdf8ed9a98f98984c177d5ade58">_direction</a>, and <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  967. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  968. </div>
  969. </div>
  970. <a class="anchor" id="a674e48a6bf99e7ad1f013c1e4414565a"></a>
  971. <div class="memitem">
  972. <div class="memproto">
  973. <table class="mlabels">
  974. <tr>
  975. <td class="mlabels-left">
  976. <table class="memname">
  977. <tr>
  978. <td class="memname">void AccelStepper::step2 </td>
  979. <td>(</td>
  980. <td class="paramtype">long&#160;</td>
  981. <td class="paramname"><em>step</em></td><td>)</td>
  982. <td></td>
  983. </tr>
  984. </table>
  985. </td>
  986. <td class="mlabels-right">
  987. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  988. </tr>
  989. </table>
  990. </div><div class="memdoc">
  991. <p>Called to execute a step on a 2 pin motor. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of pin1 and pin2 </p><dl class="params"><dt>Parameters</dt><dd>
  992. <table class="params">
  993. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  994. </table>
  995. </dd>
  996. </dl>
  997. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  998. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  999. </div>
  1000. </div>
  1001. <a class="anchor" id="ad73c61aade2e10243dfb02aefa7ab8fd"></a>
  1002. <div class="memitem">
  1003. <div class="memproto">
  1004. <table class="mlabels">
  1005. <tr>
  1006. <td class="mlabels-left">
  1007. <table class="memname">
  1008. <tr>
  1009. <td class="memname">void AccelStepper::step3 </td>
  1010. <td>(</td>
  1011. <td class="paramtype">long&#160;</td>
  1012. <td class="paramname"><em>step</em></td><td>)</td>
  1013. <td></td>
  1014. </tr>
  1015. </table>
  1016. </td>
  1017. <td class="mlabels-right">
  1018. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1019. </tr>
  1020. </table>
  1021. </div><div class="memdoc">
  1022. <p>Called to execute a step on a 3 pin motor, such as HDD spindle. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of pin1, pin2, pin3 </p><dl class="params"><dt>Parameters</dt><dd>
  1023. <table class="params">
  1024. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  1025. </table>
  1026. </dd>
  1027. </dl>
  1028. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  1029. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  1030. </div>
  1031. </div>
  1032. <a class="anchor" id="a8910bd9218a54dfb7e2372a6d0bcca0c"></a>
  1033. <div class="memitem">
  1034. <div class="memproto">
  1035. <table class="mlabels">
  1036. <tr>
  1037. <td class="mlabels-left">
  1038. <table class="memname">
  1039. <tr>
  1040. <td class="memname">void AccelStepper::step4 </td>
  1041. <td>(</td>
  1042. <td class="paramtype">long&#160;</td>
  1043. <td class="paramname"><em>step</em></td><td>)</td>
  1044. <td></td>
  1045. </tr>
  1046. </table>
  1047. </td>
  1048. <td class="mlabels-right">
  1049. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1050. </tr>
  1051. </table>
  1052. </div><div class="memdoc">
  1053. <p>Called to execute a step on a 4 pin motor. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of pin1, pin2, pin3, pin4. </p><dl class="params"><dt>Parameters</dt><dd>
  1054. <table class="params">
  1055. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  1056. </table>
  1057. </dd>
  1058. </dl>
  1059. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  1060. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  1061. </div>
  1062. </div>
  1063. <a class="anchor" id="a4b0faf1ebc0c584ab606c0c0f66986b0"></a>
  1064. <div class="memitem">
  1065. <div class="memproto">
  1066. <table class="mlabels">
  1067. <tr>
  1068. <td class="mlabels-left">
  1069. <table class="memname">
  1070. <tr>
  1071. <td class="memname">void AccelStepper::step6 </td>
  1072. <td>(</td>
  1073. <td class="paramtype">long&#160;</td>
  1074. <td class="paramname"><em>step</em></td><td>)</td>
  1075. <td></td>
  1076. </tr>
  1077. </table>
  1078. </td>
  1079. <td class="mlabels-right">
  1080. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1081. </tr>
  1082. </table>
  1083. </div><div class="memdoc">
  1084. <p>Called to execute a step on a 3 pin motor, such as HDD spindle. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of pin1, pin2, pin3 </p><dl class="params"><dt>Parameters</dt><dd>
  1085. <table class="params">
  1086. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  1087. </table>
  1088. </dd>
  1089. </dl>
  1090. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  1091. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  1092. </div>
  1093. </div>
  1094. <a class="anchor" id="aa909c6c3fcd3ea4b3ee1aa8b4d0f7e87"></a>
  1095. <div class="memitem">
  1096. <div class="memproto">
  1097. <table class="mlabels">
  1098. <tr>
  1099. <td class="mlabels-left">
  1100. <table class="memname">
  1101. <tr>
  1102. <td class="memname">void AccelStepper::step8 </td>
  1103. <td>(</td>
  1104. <td class="paramtype">long&#160;</td>
  1105. <td class="paramname"><em>step</em></td><td>)</td>
  1106. <td></td>
  1107. </tr>
  1108. </table>
  1109. </td>
  1110. <td class="mlabels-right">
  1111. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1112. </tr>
  1113. </table>
  1114. </div><div class="memdoc">
  1115. <p>Called to execute a step on a 4 pin half-steper motor. Only called when a new step is required. Subclasses may override to implement new stepping interfaces. The default sets or clears the outputs of pin1, pin2, pin3, pin4. </p><dl class="params"><dt>Parameters</dt><dd>
  1116. <table class="params">
  1117. <tr><td class="paramdir">[in]</td><td class="paramname">step</td><td>The current step phase number (0 to 7) </td></tr>
  1118. </table>
  1119. </dd>
  1120. </dl>
  1121. <p>References <a class="el" href="classAccelStepper.html#af3c2516b6ce7c1ecbc2004107bb2a9ce">setOutputPins()</a>.</p>
  1122. <p>Referenced by <a class="el" href="classAccelStepper.html#a8a419121702399d8ac66df4cc47481f4">step()</a>.</p>
  1123. </div>
  1124. </div>
  1125. <a class="anchor" id="a638817b85aed9d5cd15c76a76c00aced"></a>
  1126. <div class="memitem">
  1127. <div class="memproto">
  1128. <table class="memname">
  1129. <tr>
  1130. <td class="memname">void AccelStepper::stop </td>
  1131. <td>(</td>
  1132. <td class="paramname"></td><td>)</td>
  1133. <td></td>
  1134. </tr>
  1135. </table>
  1136. </div><div class="memdoc">
  1137. <p>Sets a new target position that causes the stepper to stop as quickly as possible, using the current speed and acceleration parameters. </p>
  1138. <p>References <a class="el" href="classAccelStepper.html#a68942c66e78fb7f7b5f0cdade6eb7f06">move()</a>.</p>
  1139. </div>
  1140. </div>
  1141. <a class="anchor" id="a96685e0945b7cf75d5959da679cd911e"></a>
  1142. <div class="memitem">
  1143. <div class="memproto">
  1144. <table class="memname">
  1145. <tr>
  1146. <td class="memname">long AccelStepper::targetPosition </td>
  1147. <td>(</td>
  1148. <td class="paramname"></td><td>)</td>
  1149. <td></td>
  1150. </tr>
  1151. </table>
  1152. </div><div class="memdoc">
  1153. <p>The most recently set target position. </p><dl class="section return"><dt>Returns</dt><dd>the target position in steps. Positive is clockwise from the 0 position. </dd></dl>
  1154. </div>
  1155. </div>
  1156. <h2 class="groupheader">Member Data Documentation</h2>
  1157. <a class="anchor" id="a35162cdf8ed9a98f98984c177d5ade58"></a>
  1158. <div class="memitem">
  1159. <div class="memproto">
  1160. <table class="mlabels">
  1161. <tr>
  1162. <td class="mlabels-left">
  1163. <table class="memname">
  1164. <tr>
  1165. <td class="memname">boolean AccelStepper::_direction</td>
  1166. </tr>
  1167. </table>
  1168. </td>
  1169. <td class="mlabels-right">
  1170. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1171. </tr>
  1172. </table>
  1173. </div><div class="memdoc">
  1174. <p>Current direction motor is spinning in Protected because some peoples subclasses need it to be so </p>
  1175. <p>Referenced by <a class="el" href="classAccelStepper.html#a3bc75bd6571b98a6177838ca81ac39ab">AccelStepper()</a>, <a class="el" href="classAccelStepper.html#affbee789b5c19165846cf0409860ae79">computeNewSpeed()</a>, <a class="el" href="classAccelStepper.html#aa4a6bdf99f698284faaeb5542b0b7514">runSpeed()</a>, <a class="el" href="classAccelStepper.html#a9270d20336e76ac1fd5bcd5b9c34f301">runSpeedToPosition()</a>, <a class="el" href="classAccelStepper.html#ae79c49ad69d5ccc9da0ee691fa4ca235">setSpeed()</a>, and <a class="el" href="classAccelStepper.html#a63ef416bc039da539294e84a41e7d7dc">step1()</a>.</p>
  1176. </div>
  1177. </div>
  1178. <hr/>The documentation for this class was generated from the following files:<ul>
  1179. <li><a class="el" href="AccelStepper_8h_source.html">AccelStepper.h</a></li>
  1180. <li>AccelStepper.cpp</li>
  1181. </ul>
  1182. </div><!-- contents -->
  1183. <!-- start footer part -->
  1184. <hr class="footer"/><address class="footer"><small>
  1185. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  1186. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1187. </a> 1.8.11
  1188. </small></address>
  1189. </body>
  1190. </html>