This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#define DIR_PIN 39 | |
#define STEP_PIN 37 | |
//#define ENABLE_PIN 35 | |
#define MICROSTEPPING 32 | |
double revsPerSec = .01; | |
int timingUs = ((1000000 / revsPerSec) / (200 * MICROSTEPPING)) / 2; |