 // LA-Pins: TP1=A3, TP2=A2, TP3= D1,  TP4=D0
 #endif
 //====================================== Ende Pin-Definitionen ======================
-MoToStepper  myStepper(stPerRev, stepMode );
+#ifdef ESP8266
+    MoToStepper  myStepper(stPerRev );
+#else
+    MoToStepper  myStepper(stPerRev, stepMode );
+#endif
 
 #define printf( x, ... ) { char txtbuf[100]; sprintf_P( txtbuf, PSTR( x ), ##__VA_ARGS__ ) ; Serial.print( txtbuf ); }
 

  Serial.begin( 115200 );
  while( !Serial ); 
  Serial.println("Programmstart");
  if ( stepMode == A4988 ) {
    if (myStepper.attach( A4988Step, A4988Dir )  ) Serial.println("Attach A4988 OK"); else Serial.println("Attach A4988 NOK");
  } else {
    if (myStepper.attach( stepPins[0],stepPins[1],stepPins[2],stepPins[3] )  ) Serial.println("Attach 4Wire OK"); else Serial.println("Attach A4988 NOK");
  }
  myStepper.attachEnable(enablePin, 30, LOW );
  myStepper.setSpeedSteps( 6000, 100 );
  delay( 500 );
  Serial.println( "Starting loop" );

#elif defined __AVR_ATmega328P__ // ========- 328P ( Nano, Uno Mega ) ========--
const byte A4988Step=6, A4988Dir=5;
const byte stepPins[] = {16,18,17,19 };
#define enablePin 7
// SPI = Pins 10,11,12,13
// LA-Pins: TP1=A1, TP2=A2, TP3= A3,  TP4=A4
//............................................................................
