GPIO pin num­ber­ing

Linux User & Developer - - Tutorial -

GPIO pins are a phys­i­cal in­ter­face be­tween the Pi and the out­side world. At the sim­plest level, you can think of them as switches that you can turn on or off. You can also pro­gram your Raspberry Pi to turn them on or off (out­put). The GPIO.BCM op­tion means that you are re­fer­ring to the pins by the ‘Broad­com SOC chan­nel’ num­ber. The GPIO.BOARD op­tion spec­i­fies that you are re­fer­ring to the pins by their phys­i­cal pin num­ber.

Newspapers in English

Newspapers from UK

© PressReader. All rights reserved.