Things You’ll Need Step 1: Circuit Connections The LED has two legs: long leg = anode (+), short leg = cathode (–). Step 2: Building the Circuit Step 3: Write the Code Let’s now write the code for the Arduino sketch. Launch the Arduino IDE and enter: Step 4: Uploading the Code