How to program stepper motor and DC motor run at the same time?

3 things,

  1. only post code inside code tags (the # above)

  2. Always lay your code out using the auto format tool in the IDE. Never do it by hand. This helps you! (and us).

  3. Never use delay. You can't do what you want if you are using delay!. Look at the blink without delay example and look up Finite State Machines in the playground.

Mark