ESP_IOT v2.5
IOT ESP Coding
PTStepper.cpp File Reference
#include "PTStepper.h"
#include "StepperModule.h"
Include dependency graph for PTStepper.cpp:

Go to the source code of this file.

Functions

int _ourSteps (0)
 PTStepper More...
 
void setup_PTStepper ()
 setup the PTStepper More...
 
void cycle_PTStepper ()
 
void step (int steps[][4], int stepCount)
 
void clearPins ()
 
void whoAreWe ()
 
void start_PTStepper ()
 starts the PTStepper More...
 

Variables

int _targetSteps
 
int _lastType = 0
 
int _fudgeFactor = 0
 
int _pins []
 
int _fullStepCount = 4
 
int _fullSteps [][4]
 
int _currentStep = 0
 
int _cycleCounter = 0
 
bool _clockwise = true
 

Function Documentation

◆ _ourSteps()

int _ourSteps ( )

PTStepper

Here is the caller graph for this function:

◆ clearPins()

void clearPins ( )

Definition at line 86 of file PTStepper.cpp.

Here is the caller graph for this function:

◆ cycle_PTStepper()

void cycle_PTStepper ( )

Definition at line 156 of file PTStepper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setup_PTStepper()

void setup_PTStepper ( )

setup the PTStepper

Definition at line 131 of file PTStepper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ start_PTStepper()

void start_PTStepper ( )

starts the PTStepper

Definition at line 187 of file PTStepper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ step()

void step ( int  steps[][4],
int  stepCount 
)

Definition at line 138 of file PTStepper.cpp.

Here is the caller graph for this function:

◆ whoAreWe()

void whoAreWe ( )

see if the motor direction is clockwise == true

Definition at line 93 of file PTStepper.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ _clockwise

bool _clockwise = true

Definition at line 76 of file PTStepper.cpp.

◆ _currentStep

int _currentStep = 0

Definition at line 68 of file PTStepper.cpp.

◆ _cycleCounter

int _cycleCounter = 0

Definition at line 70 of file PTStepper.cpp.

◆ _fudgeFactor

int _fudgeFactor = 0

Definition at line 19 of file PTStepper.cpp.

◆ _fullStepCount

int _fullStepCount = 4

Definition at line 58 of file PTStepper.cpp.

◆ _fullSteps

int _fullSteps[][4]
Initial value:
= {
{HIGH,HIGH,LOW,LOW},
{LOW,HIGH,HIGH,LOW},
{LOW,LOW,HIGH,HIGH},
{HIGH,LOW,LOW,HIGH}
}

Definition at line 59 of file PTStepper.cpp.

◆ _lastType

int _lastType = 0

Definition at line 18 of file PTStepper.cpp.

◆ _pins

int _pins[]
Initial value:
{
12,
14,
27,
26
}

Definition at line 24 of file PTStepper.cpp.

◆ _targetSteps

int _targetSteps

Definition at line 17 of file PTStepper.cpp.