In this lesson, you will learn how to use a basic LED and a resistor to connect to a Micro:bit. No board will be used.
Step 1: You can connect general leds using the following drawing below. You will need a resistor and an led.
Step 2: The long wire of the led is "Positive" red and need to be connected to a pin on the board (0,1,2).
Step 3: Open the MakeCode editor at https://makecode.microbit.org.
Step 4: Start by setting the pin in the setup function to "down". This ensures that the pin is off when the program starts.
Step 5: For each of the leds connected you can go to the Advance section and choose pins and then using the pin number to change the state from "On" = 1 or "Off" = 0.