Recent Changes - Search:




Misc Pages needed information to be moved or recategorized:

edit side bar

BlinkLK

/*
  Blinklk 
  This is a modification of the program Blink from the Arduino IDE distribution and is commented in the manner required by Louis Katz for his class
  Turns an LED on for two seconds, then off for one second, repeatedly. Louis.Katz@tam-----

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman
  modified by Louis Katz 9 Nov 2020

  This example code is in the public domain.

  http://www.arduino.cc/en/Tutorial/Blink
*/
int LEDPin =13;                 // creates an integer storage space called LEDPin and sets it equal to 13. 
void setup() {

  pinMode(LEDPin, OUTPUT);      // initialize LEDPin as an output.
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LEDPin, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(2000);                       // wait for a second
  digitalWrite(LEDPin, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}
Edit - History - Print - Recent Changes - Search
Page last modified on January 26, 2021, at 12:00 AM