generated from TDD-Templates/cmake_cpputest_template_avr
Added a define for the motor pulse timing, 1uS and 5uS both work well.
This commit is contained in:
parent
b21a8fbecf
commit
17bd1a4e38
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue