// run a 28BYJ-45 stepper motor directly from the Arduino pins //#define period 10000 //in mus #define period 1766536// 3600*1000000/(8*4*25792/405) #define npin 4 #define t_a 50 //ms per step byte activepin=0; long unsigned int lastmicros; //byte pin[npin]={4,5,6,7}; byte pin[npin]={7,6,5,4}; void setup() { // set all pins to 0V for (byte ipin=0; ipin