Professional Documents
Culture Documents
College Of Engineering
Microprocessor Laboratory Activity # 1
Title: LED ON and OFF Simulation
The LED should blinking on and off at a rate of 1000 milliseconds (1000 milliseconds = 1 second)
LED BLINK
void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}