#include <Servo.h>
Servo servo1;
const byte servoSignalPin = 4;
void setup() {
Serial.begin(115200);
Serial.println("Setup-Start");
servo1.attach(servoSignalPin); // mitteilen an welchem IO-Pin soll das Servo-Signal erzeugt werden
}
void loop() {
servo1.write(180); // Servo auf 180 Grad
Serial.println("servo1.write(180) done");
Serial.println("delay(3000) microcontroller STOPPED!");
delay(3000);
Serial.println("microcontroller goes on");
servo1.write(0); // Servo auf 0 Grad
Serial.println("servo1.write(0) done");
Serial.println("delay(3000) microcontroller STOPPED!");
delay(3000);
Serial.println("CONTINUE microcontroller goes on");
}