Code
int ledpin=13; int value=LOW; long previousmillis=0; long interval = 100; void setup() { // put your setup code here, to run once: pinMode(ledpin,OUTPUT); } void loop() { // put your main code here, to run repeatedly: long currentMillis=millis(); if(currentMillis-previousmillis>interval){ previousmillis=millis(); if(value==LOW){ value=HIGH; }else{ value=LOW; } digitalWrite(ledpin,value); } }