Question: Please answer the following questions. //use integer variable to store pin # for LED (global variable) II connect LED this digital port/pin intledPina 10; //
//use integer variable to store pin # for LED (global variable) II connect LED this digital port/pin intledPina 10; // the setup) function runs once at startup void setup() pin 10 pinMode(ledPin, OUTPUT), Il initialize the digital pin as an output. LED // the loop routine runs over and over again forever void loop) GND digitalWrite(ledPin, HIGH); / turn the LED on delay(2); digitalWrite (ledPin, LOW), turn the LED off delay(8); Note: every LED needs a series resistor (200-1K ohms) I/ wait in msec / wait in msec
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
