SusKahl
Posts: 5
Joined: Sun Aug 09, 2015 9:30 am

how to install GPIO on Zero

Mon Sep 18, 2017 1:44 pm

sorry for the misleading headline.

Im trying to follow this tourial
https://learn.adafruit.com/adding-basic ... -pwm-audio

I have installed
Raspian Stretch

Then I run
sudo apt-get install raspi-gpio

and when I type
gpio -v

I get the error
-bash: gpio: command not found

what am I doing wrong?

pcmanbob
Posts: 2218
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: how to install GPIO on Zero

Mon Sep 18, 2017 2:01 pm

Hi.

seeing as you installed raspi-gpio then you need to use that to run the program try

Code: Select all

raspi-gpio help
Please only ask questions in the forum I will not answer questions sent to me directly via PM
Remember we want information.......................no information no help

User avatar
rpdom
Posts: 11856
Joined: Sun May 06, 2012 5:17 am
Location: Essex, UK

Re: how to install GPIO on Zero

Mon Sep 18, 2017 2:18 pm

The tutorial is a bit misleading. It is mixing up two packages: wiringpi and raspi-gpio. Wiring Pi has the gpio command and can be installed with sudo apt-get install wiringpi

pcmanbob has already pointed out the other one.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 4146
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: how to install GPIO on Zero

Mon Sep 18, 2017 4:06 pm

rpdom wrote: The tutorial is a bit misleading. It is mixing up two packages: wiringpi and raspi-gpio. Wiring Pi has the gpio command and can be installed with sudo apt-get install wiringpi
pcmanbob has already pointed out the other one.
Note however, for the "full" Raspbian distro. wiringPi is (should be) already installed (W.r.t. Raspbian Lite IJDK). A (quite useful) quick test is gpio readall**
Trev.
** FWIW, some example outputs for various Pi's are here: http://www.cpmspectrepi.uk/raspberry_pi ... adall.html
Usually running Raspbian Jessie on up to 9 of 13 Pi's (an A, B1, B2, B+, P2B, 3xP0, P0W) and Stretch on my P3B, B+, A+ and a B2. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

SusKahl
Posts: 5
Joined: Sun Aug 09, 2015 9:30 am

Re: how to install GPIO on Zero

Tue Sep 19, 2017 1:11 pm

Thanks to all 3 of you. Im now a bit closer to my gold.

Return to “Beginners”

Who is online

Users browsing this forum: jojopi and 51 guests