Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int ledPin = 9; // LED connected to digital pin 9
- void setup() {
- pinMode(ledPin, OUTPUT);
- }
- void loop()
- {
- int i,count;
- count=random(10,60);
- for (i=0;i<count;i++) {
- digitalWrite(ledPin, HIGH); // set the LED on
- delay(random(60));
- digitalWrite(ledPin, LOW); // set the LED off
- delay(random(200));
- }
- delay(random(800,2000));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement