bool state;

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {

  static unsigned long tick = 0;

  if (millis() - tick >= 100) {
    tick = millis();
    state = !state;
    digitalWrite(LED_BUILTIN, state);
  }
}