Attaching the resistor and LED

You'll want to use a wire to connect GPIO 4 (pin 7) to a 330-ohm resistor and the resistor to the positive (long) leg of the LED. Then, you'll want to connect the negative (short) leg to ground, or any pin marked GND. Your finished project will look something like this:

Your LED project

Now that your LED is wired up, it's time to make it blink!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.16.137.38