Skip to content

Commit

Permalink
Merge pull request #72 from dtex/master
Browse files Browse the repository at this point in the history
accelStepper for configurable firmata

Adds improved stepper motor support by wrapping the AccelStepper library.
  • Loading branch information
soundanalogous authored Sep 16, 2017
2 parents 80df156 + 870f502 commit 4c0c4a1
Show file tree
Hide file tree
Showing 9 changed files with 2,129 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/ConfigurableFirmata/ConfigurableFirmata.ino
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ OneWireFirmata oneWire;
#include <StepperFirmata.h>
StepperFirmata stepper;

#include <AccelStepperFirmata.h>
AccelStepperFirmata accelStepper;

#include <SerialFirmata.h>
SerialFirmata serial;

Expand Down Expand Up @@ -316,6 +319,9 @@ void setup()
#ifdef StepperFirmata_h
firmataExt.addFeature(stepper);
#endif
#ifdef AccelStepperFirmata_h
firmataExt.addFeature(accelStepper);
#endif
#ifdef SerialFirmata_h
firmataExt.addFeature(serial);
#endif
Expand Down Expand Up @@ -417,6 +423,9 @@ runtasks: scheduler.runTasks();
#ifdef StepperFirmata_h
stepper.update();
#endif
#ifdef AccelStepperFirmata_h
accelStepper.update();
#endif
#ifdef SerialFirmata_h
serial.update();
#endif
Expand Down
Loading

0 comments on commit 4c0c4a1

Please sign in to comment.