Skip to content

Instantly share code, notes, and snippets.

@tchilov
tchilov / main.ccp
Created December 30, 2023 15:20
startracker
#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;