GPIO(Raspberry Pi)

GPIO(General Purpose Input/Output)

RPi.GPIO

$ pip install RPi.GPIO

WiringPi

$ git clone https://github.com/WiringPi/WiringPi
$ cd WiringPi
$ ./build
$ gpio -v
gpio version: 3.0
Copyright (c) 2012-2024 Gordon Henderson and contributors
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty

Raspberry Pi Details:
  Type: Pi 2, Revision: 01, Memory: 1024MB, Maker: Sony 
  * Device tree is enabled.
  *--> Raspberry Pi 2 Model B Rev 1.1
  * This Raspberry Pi supports user-level GPIO access.

pigpio

$ sudo apt install pigpio

libgpiod

python-periphery

$ pip install python-periphery

GPIO Zero

$ sudo apt install python3-gpiozero
タイトルとURLをコピーしました