consultantple.blogg.se

Download led pinout for free
Download led pinout for free









download led pinout for free

It’s an interface used to plug other electronic devices into the Raspberry Pi. GPIO stands for “General Purpose Input/Output”. My book: Master your Raspberry Pi in 30 days.15 best operating systems for Raspberry Pi (with pictures).25 awesome Raspberry Pi project ideas at home.In a few weeks, you’ll be ready, and this example will be easy to read for you.Īnyway, this was just a basic example to get you started and show you how to use the previous diagram. I explain everything you need (and only that), to use it for any project. Remember, if reading this Python script feels like deciphering hieroglyphs for you, you will benefit from reading my book “ Master Python on Raspberry Pi“.

download led pinout for free

From there, I can set it on or off with:.Then, I define the LED name (26 in my example), and initialize it as an output with:.I start with two initialization steps, especially setting GPIO.BCM, which means we’ll use the port “name” instead of the pin “numbers” (GPIO.BOARD).Other solutions are possible, but let’s use this one as an example. I use RPi.GPIO (a pre-installed Python library).In Python, the full script will look like this: import RPi.GPIO as GPIO If you want to try this simple circuit on your own, read my GPIO guide for beginners, as I think I use something very similar in it (maybe not the same pins, but it’s a good exercise anyway).











Download led pinout for free