Question: needs to be connected to pin 12 . It will not work if the cathode (straight leg) is connected to pin 12 . We will

 needs to be connected to pin 12 . It will not

work if the cathode (straight leg) is connected to pin 12 .

needs to be connected to pin 12 . It will not work if the cathode (straight leg) is connected to pin 12 . We will discuss why this is the case during the semester. To write code on Tinkercad we press the "Code" button and make sure it is set to "Text" instead of "Blocks". Then enter the following code: const int LED = 12; void setup()\{ // declare the LED pin as an output pinMode(LED, OUTPUT); void loop()\{ digitalWrite(LED, HIGH); // Turn on the LED delay(1000); // Wait for 1000 millisecond(s) digitalWrite(LED, LOW); // Turn off the LED delay(1000); // Wait for 1000 millisecond(s) \} // go back to the beginning of the loop In the top right corner, press "Start Simulation" and verify that your project works correctly. The orange LED should be flashing

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!