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

  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" );


// Definition der Pins für verschiedene Platformen
//==========================================================================
#define stepMode  STEPDIR
const int stPerRev = 400;
#ifdef ESP8266  //===================== ESP8266 ========================
const byte A4988Step=14, A4988Dir=2 ;
#define enablePin 12
// SPI1 = Pins MOSI=PA7, MISO=PA6, SCK=PA5, NSS=PA4
// LA-Pins: TP1=PB12, TP2=PB13, TP3= PB14,  TP4=BP15
//............................................................................
#elif defined __STM32F1__  //===================== STM32F1 ========================
const byte A4988Step=PB8, A4988Dir=PB5 ;
// SPI1 = Pins MOSI=PA7, MISO=PA6, SCK=PA5, NSS=PA4
// LA-Pins: TP1=PB12, TP2=PB13, TP3= PB14,  TP4=BP15
