This is an old revision of the document!
yourpi:~$ wget https://project-downloads.drogon.net/wiringpi-latest.deb
NOTE: domain say “dr-OH-gon”, it does NOT say “dragon”
yourpi:~$ sudo dpkg -i wiringpi-latest.deb
“gpio readall” will open up a table showing the physical pin layout of your pi. It will also tell you whether a pin is set to input or output, and whether the pin is turned on or off (V=0 shows the pin is off, v=1 shows the pin is on).
“gpio mode WIRINGPI_PIN# MODE” will change the mode of the designated pin. You must use the WiringPi pin number. Mode can either be in (input) or out (output).
“gpio write WIRINGPI_PIN# STATE” will change the ON/OFF state of a pin. 0=off and 1=on
GPIO.0 is actually GPIO17 on your T-cobbler
Brief Definition:
A light-emitting diode (LED) is a semiconductor device that emits light when current flows through it.