please change this in to millis() (means without delay 1s on time and 0.1s off )
void setup() {
// initialize digital pin 13 output.
pinmode(13, output);
}
// loop function runs on , on again forever
void loop() {
digitalwrite(13, high); // turn led on (high voltage level)
delay(1000); // wait second
digitalwrite(13, low); // turn led off making voltage low
delay(100); // wait second
}
// initialize digital pin 13 output.
pinmode(13, output);
}
// loop function runs on , on again forever
void loop() {
digitalwrite(13, high); // turn led on (high voltage level)
delay(1000); // wait second
digitalwrite(13, low); // turn led off making voltage low
delay(100); // wait second
}
this = millis();
or if not mean, @ blinkwithoutdelay in example folder.
or if not mean, @ blinkwithoutdelay in example folder.
Arduino Forum > Using Arduino > Programming Questions > please change this in to millis() (means without delay 1s on time and 0.1s off )
arduino
Comments
Post a Comment