ChildOfCode


Code, Maker, Robotic, Open Source. Knowledge Bases


Mobile first

This is the first post in my mobile.
^^

function toggle() {

//makes the value of 'on' true if it was false before, or false if it was true before. 
//If you pronounce = as becomes, and ! as 'not', reading the line makes much more sense.
 on = !on;

//Set the digital value of the given pin
 digitalWrite(A0, on);  //Blink LED
 digitalWrite(A1, !on); //UnBlink LED
 digitalWrite(C3, on);  //Blink LED

}

toggle(); // Call the Function

var interval = setInterval(toggle, 500); //Blink the LED every 500ms

changeInterval(interval, 100); //Change the speed to the LED

clearInterval(interval); //stop flashing LED

save(); //Save program memory into flash.