int taster = 2;
int led1 = 3;
int led2 = 4;

unsigned long altmillis = 0;
unsigned long aktmillis = 0;
bool status1 = false;
bool status2 = false;
bool tasterstatus = false;
unsigned long intervall1 = 1500;
unsigned long intervall2 = 500;


void setup() {
  Serial.begin(115200);
  pinMode(taster, INPUT);
  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);

}

void loop() {

  if(millis() - altmillis > 1000){
  
      digitalWrite(led1, HIGH);

} 

if(millis() - altmillis > 500){
  digitalWrite(led1, LOW);

  altmillis = millis();
}
}