A quick glance at the raspberry pi gpio examples shows that there are dozens of programming language choices. Programming in what language.
Turning On An Led With Your Raspberry Pi S Gpio Pins The Pi Hut
Raspberry pi gpio wiring diagram. I know nothing about electronics as you can tell but i wired it together using this diagram. Ive tried to imitate the below diagram for my raspberry pi using gpio 0 without a receiver. A 40 pin gpio header is found on all current raspberry pi boards unpopulated on pi zero and pi zero w. Any of the gpio pins can be designated in software as an input or output pin and used for a wide range of purposes. The pins labelled scl and sda can be used for i2c. The diagram seems to show a resistor going to ground and an emitter going to ground as well.
It also includes dozens of pinouts for raspberry pi add on boards hats and phats. The comprehensive gpio pinout guide for the raspberry pi. Wiring pi gpio interface library for the raspberry pi. This gpio pinout is designed to be both a quick and interactive reference to the raspberry pi gpio pins plus a comprehensive guide to your raspberry pis gpio interfaces. The following tables give the mapping of the raspberry pi gpio pins to the p1 gpio connector in relation to the pin numbers and the physical location on the connector. Weve pared that list down and ended up with two really solid easy tools for driving io.
As well as supplying power gnd 33v and 5v all the gpio pins can be used as either digital inputs or outputs. This is a representation of the gpio connector as viewed looking at the board from above. The diagram below show gpio pinouts used on different models of the raspberry pi. Python and c using the wiringpi library. Prior to the pi 1 model b 2014 boards comprised a shorter 26 pin header. The earlier revisions of the raspberry pi were 26 pin based while the newer models are 40 pin.
Support pinoutxyz on patreon. Driving the raspberry pis io lines requires a bit of programming.