int ledPin = D0;
int hour = 1;
int minute = 1;
int second = 1;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop(){
digitalWrite(ledPin, LOW);
delay(hour*3600000+minute*60000+second*1000);
digitalWrite(ledPin, HIGH);
delay(10000000000000000);
}
Click to Expand
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .