Added a define for the motor pulse timing, 1uS and 5uS both work well.

This commit is contained in:
jakeg00dwin 2025-02-18 16:41:31 -08:00
parent b21a8fbecf
commit 17bd1a4e38
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@
#define SPEED_PIN PB2 // Pin 7/ADC1 #define SPEED_PIN PB2 // Pin 7/ADC1
#define BUTTON_PIN PB4 // Pin 3 - Button input #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 /*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 * so for an 8bit register the maximum value is 256. Given we stick with