Is there a way to set severals Pins values synchroniously rather than sequencialy ?
In other words, is it possible to change Pin(1) and Pin(2) value in the same time ?
My specific use case is to change microstepping configuration of a drv8825 while motor spin.
Code: Select all
Mode2 | Mode1 | Mode0 | STEP MODE
0 | 0 | 0 | Full step
0 | 0 | 1 | 1/2
0 | 1 | 0 | 1/4
to change from 1/2 to 1/4, I need to change Mode0 and Mode1 pins, but if I do it asynchroniuously I will switch shortly to Full step or 1/8 before getting the right setting for 1/4.