A blog about my rantings, including Games, Game Development, Gaming, Consoles, PC Gaming, Role Playing Games, People, Gaming tips & cheats, Game Programming and a plethora of other stuff.
Pages
▼
Sunday, 10 April 2016
Arc Welding Arduino Code
From my YouTube Video:
int ledPin = 13; // LED connected to digital pin 13 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)); // wait a random bit of time }
No comments:
Post a Comment