Hello Community! I am brand new to the Pi world and wanted to see what these things can do. I have my Pi4 setup running the latest version of Raspbian and can SSH to it and everything. I found a tutorial on Youtube that talks about how to use the CLI to issue simple commands to set and test the GPIO pins to turn on an LED. Well I can't get it to work. So I switched to a multimeter and tried it directly on the pins and still can not see the change of state on the pins using the CLI to issue simple commands like this...
gpio -g mode 18 output
gpio -g blink 18
gpio -g write 18 1 (to turn it on)
gpio -g write 18 0 (to turn it off)
Here is what I have done so far....
git clone git://git.drogon.net/wiringPi
This does not work for somer reason... I get this... response
fatal: unable to connect to git.drogon.net:
git.drogon.net[0: 18.104.22.168]: errno=Connection refused
git.drogon.net[1: 2a03:9800:10:7b::2]: errno=Network is unreachable
before anyone asks, yes I can get to the internet with the Pi4 and it is unrestricted access. I'm a network engineer, so I promise its not the network.
What I did find was that the "GPIO" commands were already in the OS. So I did this....
gpio version: 2.50
Copyright (c) 2012-2018 Gordon Henderson
This is free software with ABSOLUTELY NO WARRANTY.
For details type: gpio -warranty
Raspberry Pi Details:
Type: Unknown17, Revision: 01, Memory: 0MB, Maker: Sony
* Device tree is enabled.
*--> Raspberry Pi 4 Model B Rev 1.1
* This Raspberry Pi supports user-level GPIO access.
From what little I've found about this, the "unknown17" seems to be a problem.
Some more googling and I've tried this....
And got this....
Resolving unicorn.drogon.net (unicorn.drogon.net)... 22.214.171.124, 2001:41c9:1:41e::171
Connecting to unicorn.drogon.net (unicorn.drogon.net)|126.96.36.199|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 52740 (52K) [application/x-debian-package]
Saving to: ‘wiringpi-2.48-1.deb’
wiringpi-2.48-1.deb 100%[==================================>] 51.50K 193KB/s in 0.3s
2019-09-19 15:01:29 (193 KB/s) - ‘wiringpi-2.48-1.deb’ saved [52740/52740]
So that's about where I'm at for now. I'm just looking to control the outputs from the CLI for now to make sure I am comfortable doing it, and then I will start learning how to use the inputs to monitor one-wire temperature sensors next.
Any help would be greatly appreciated!