/*
int led = 7;
void setup() {
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
}
*/
int led = 7;
unsigned long cas;
int zakasnitev = 500;
bool m = HIGH;
void setup() {
pinMode(led, OUTPUT);
Serial.begin(115200);
}
void loop() {
if ((millis() - cas) > zakasnitev){
cas = millis();
m = !m;
Serial.println(m);
digitalWrite(led, m);
}
}