From 17bd1a4e38ca7a511b1ebe28e943c664d9cd08d2 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Tue, 18 Feb 2025 16:41:31 -0800 Subject: [PATCH] Added a define for the motor pulse timing, 1uS and 5uS both work well. --- inc/main.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/main.h b/inc/main.h index 2e86b70..699994d 100644 --- a/inc/main.h +++ b/inc/main.h @@ -49,6 +49,8 @@ #define SPEED_PIN PB2 // Pin 7/ADC1 #define BUTTON_PIN PB4 // Pin 3 - Button input +#define MOTOR_PULSE 1 //uS motor base pulse + /*The timing of "ticks" is dependent on the AVR timer's counter register * so for an 8bit register the maximum value is 256. Given we stick with