const int ledPin = 13;
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop() {
static int delayPeriod = 100;
int countDir = 1;
digitalWrite(ledPin, HIGH);
delay(delayPeriod);
digitalWrite(ledPin, LOW);
delay(delayPeriod);
delayPeriod += 000.8 * countDir;
Serial.print("New Wait Time : ");
Serial.println(delayPeriod);
}
Comments
Please log in or sign up to comment.