ok..hab es...schwere Geburt :-[
#include <SimpleServo.h>
SimpleServo myservo;
const int Switch = 3;
int SwitchStatus=LOW;
unsigned long previousMillis = 0;
void setup()
{
pinMode(Switch, INPUT_PULLUP);
myservo.attach(0);
}
void loop()
{
// check to see if it's time to change the state of the LED
unsigned long currentMillis = millis();
static bool Switch_alt;
SwitchStatus=!digitalRead(Switch);
myservo.write(0);
if((SwitchStatus == LOW) && (currentMillis - previousMillis >= 60000))
{
previousMillis = currentMillis;
myservo.write(120);
}
else if ((SwitchStatus == HIGH) && (currentMillis - previousMillis >= 600000))
{
previousMillis = currentMillis;
myservo.write(120);
}
}