80void step(
int steps[][4],
int stepCount);
87 for (
int pin = 0; pin < 4; pin++) {
88 pinMode(
_pins[pin], OUTPUT);
89 digitalWrite(
_pins[pin], LOW);
117 SerialDebug.printf(
"STEPPER STEPS = %d\n",
_targetSteps);
126 SerialDebug.printf(
"MOTOR_DIRECTION_CLOCKWISE = %d\n",
_clockwise);
138void step(
int steps[][4],
int stepCount) {
147 int directionStep =
_clockwise ? currentStepInSequence : (stepCount - 1) - currentStepInSequence;
151 for (
int pin = 0; pin < 4; pin++) {
152 digitalWrite(
_pins[pin], steps[directionStep][pin]);
191 SerialDebug.print(
"Feeder type currently is ");
194 SerialDebug.println(
"**************** Starting Stepper *******************");
202 SerialDebug.println(
"**************** Ending Stepper *************");
207 SerialDebug.println(
"**************** Starting Return *******************");
217 SerialDebug.println(
"**************** Emding Return ***********");
void step(int steps[][4], int stepCount)
void start_PTStepper()
starts the PTStepper
int _ourSteps(0)
PTStepper
void setup_PTStepper()
setup the PTStepper
float getPreferenceFloat_mainModule(int preferenceID)
called to set a preference (which will be an identifier and a string, which can be converted to a num...
boolean getPreferenceBoolean_mainModule(int preferenceID)
called to set a preference (which will be an identifier and a string, which can be converted to a num...
#define PREFERENCE_STEPPER_ANGLE_FLOAT_SETTING
#define PREFERENCE_STEPPER_CLOCKWISE_MOTOR_DIRECTION_SETTING
int getFeederType()
retreives the feeder type (versus grabbing a global variable)