When connecting electronics it’s good practice to shutdown and power off your Raspberry Pi.
Shutdown Raspberry Pi
To shutdown your Raspberry Pi from the command line, type:
sudo shutdown -h now or you can also use
Restarting your Raspberry Pi
To restart your Raspberry Pi from the command line, type:
sudo shutdown -r now or
Now the fun begins, let’s hook up an LED and make it blink!