Added Wait for compleation funcionality
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user