Advertisement
sspence65

Arduino Arc Flash

Nov 27th, 2018
2,644
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 1 0
  1. int ledPin = 9; // LED connected to digital pin 9
  2. void setup() {
  3. pinMode(ledPin, OUTPUT);
  4. }
  5. void loop()
  6. {
  7. int i,count;
  8. count=random(10,60);
  9. for (i=0;i<count;i++) {
  10. digitalWrite(ledPin, HIGH); // set the LED on
  11. delay(random(60));
  12. digitalWrite(ledPin, LOW); // set the LED off
  13. delay(random(200));
  14. }
  15.  
  16. delay(random(800,2000));
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement