A reference portal for students, mentors, and ATL in-charges. Data has been filtered & names have been changed to protect the privacy of individuals.
A simple project to make an LED blink every second using an Arduino micro-controller board.
/* Blink an LED connected to Arduino Uno */
#define LED 13 // Define blinking LED pin
void setup() {
Serial.begin(115200);
pinMode(LED, OUTPUT); // Initialize the LED pin as an output
}
// The loop function runs over and over again forever
void loop() {
Serial.println("Turning on LED");
digitalWrite(LED, HIGH); // Turn the LED on by making the voltage HIGH
delay(1000); // Wait for one second
Serial.println("Turning off LED");
digitalWrite(LED, LOW); // Turn the LED off by making the voltage LOW
delay(1000); // Wait for one second
}