mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 23:17:43 +00:00
Update xdrv_25_A4988_Stepper.ino
This commit is contained in:
parent
72990ad9ae
commit
19c42f3893
@ -57,10 +57,11 @@ void A4988Init(void)
|
|||||||
, A4988_ms3_pin );
|
, A4988_ms3_pin );
|
||||||
}
|
}
|
||||||
|
|
||||||
const char kA4988Commands[] PROGMEM = "|" //no prefix
|
const char kA4988Commands[] PROGMEM = "Motor|" // prefix
|
||||||
"motorMove|motorRotate|motorTurn|motorMIS|motorSPR|motorRPM";
|
"Move|Rotate|Turn|MIS|SPR|RPM";
|
||||||
|
|
||||||
void (* const A4988Command[])(void) PROGMEM = { &CmndDoMove,&CmndDoRotate,&CmndDoTurn,&CmndSetMIS,&CmndSetSPR,&CmndSetRPM};
|
void (* const A4988Command[])(void) PROGMEM = {
|
||||||
|
&CmndDoMove,&CmndDoRotate,&CmndDoTurn,&CmndSetMIS,&CmndSetSPR,&CmndSetRPM};
|
||||||
|
|
||||||
void CmndDoMove(void) {
|
void CmndDoMove(void) {
|
||||||
if (XdrvMailbox.data_len > 0) {
|
if (XdrvMailbox.data_len > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user