From 65536ada8fdadabcdfecd63793e4c62bf12c4968 Mon Sep 17 00:00:00 2001 From: jake Date: Wed, 12 Feb 2025 15:10:19 -0800 Subject: [PATCH] updated for midpoint default posision. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index bdacddf..845cc94 100644 --- a/src/main.c +++ b/src/main.c @@ -78,7 +78,7 @@ void InitProg(void) { } else { // otherwise we write the init values for the start pattern and states. eeprom_write_byte((uint8_t *)ROM_SP_ADR, START_PATTERN); - eeprom_write_byte((uint8_t *)ROM_SS1_ADR, 0x0); + eeprom_write_byte((uint8_t *)ROM_SS1_ADR, 0x7F); } InitTimer0(); @@ -121,9 +121,9 @@ void MotorMoveTo(uint8_t target) { MotorMove(0); } // The delay ratio controlls the PWM waveforms. - _delay_ms(50); + _delay_ms(5); MotorCoast(); - _delay_ms(50); + _delay_ms(5); } return; }