読者です 読者をやめる 読者になる 読者になる

脳汁portal

アメリカ在住(だった)新米エンジニアがその日学んだIT知識を書き綴るブログ

raspberryPi3へWiringPiGPIOを設定する手順

電子工作

GPIO:General Purpose Input/Output

$ git clone git://git.drogon.net/wiringPi
  Cloning into 'wiringPi'...
  .
  .
  .
  Checking connectivity... done.

$ ls -l
  total 4
  drwxr-xr-x 10 pi pi 4096 Nov 29 15:10 wiringPi

$ cd wiringPi/

./build
  wiringPi Build script
  .
  .
  .
  All Done.
  .
  .
  .

$ gpio -v
  gpio version: 2.32
  Copyright (c) 2012-2015 Gordon Henderson
  This is free software with ABSOLUTELY NO WARRANTY.
  For details type: gpio -warranty
 
  Raspberry Pi Details:
    Type: Pi 3, Revision: 02, Memory: 1024MB, Maker: Embest
    * Device tree is enabled.
    * This Raspberry Pi supports user-level GPIO access.
      -> See the man-page for more details
      -> ie. export WIRINGPI_GPIOMEM=1