//***************Arduino Code from Video**********************************
/*
This code was used for a tutorial video on the ForceTronics YouTube Channel that showed
how to do debugging with the Arduino Zero and Atmel Studio. This code is free and open
for anybody to use or modify
*/
int ranNum; //global variable to hold random number
void setup() {
randomSeed(analogRead(A0)); //seed value for random number generator
pinMode(13, OUTPUT); // initialize digital pin 13 as an output.
}
void loop() {
ranNum = random(0,100); //generate a random number between zero and 100
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}