Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions