Added Wait for compleation funcionality

This commit is contained in:
AlexanderHD27
2024-09-25 19:23:24 +02:00
parent bba35c9622
commit e97472c2a3
3 changed files with 74 additions and 8 deletions

View File

@@ -94,13 +94,15 @@ int main() {
step_driver.set_conf0(5000, 0);
step_driver.set_conf1(10000, 0);
step_driver.pulse0(UINT32_MAX - 10);
sleep_ms(5);
step_driver.pulse1(UINT32_MAX - 10);
step_driver.pulse0(5);
sleep_ms(3);
sleep_ms(5);
step_driver.pulse0(UINT32_MAX - 10);
step_driver.pulse1(5000);
step_driver.pulse0(1);
step_driver.wait1(3);
step_driver.pulse0(10);
step_driver.pulse1(1);
//step_driver.pulse0(5);
step_driver.pulse1(5);
TMC2209_UART uart_driver0 = TMC2209_UART(uart0, 0, 19200, 0, 1);
TMC2209_UART uart_driver1 = TMC2209_UART(uart1, 0, 19200, 4, 5);