Uninstalling Software
To remove a package, use Sudo apt-get remove package name command to uninstall the package along with any dependencies which are no longer required to upgrade a package, type sudo apt-get upgrade command in the terminal.
Playing Music at the console
Pi supports a music playback package called moc. To install moc package type the following command in the terminal sudo apt-get install moc -installation cmd To load music player, simply type mocp in the terminal
To make mocp become apparent, just by pressing the Q key. To restore the interface again, just type mocp command in the terminal the most commonly used mocp flags are as follows
mocp -s stop current playback
mocp -G Resume playback
mocp -x stop playback and quit mocp
mocp -i print information on the current song to the terminal
GPIO port
GPIO stands for General Purpose Input/Output. The prime goal of GPIO pins to add some extensions to your Raspberry Pi.
Pins Layout
Raspberry Pi configuration:
sudo apt-get update
sudo apt-get upgrade
Install the rpi.gpio packages by typing the following command
sudo apt install python3-rpi.gpio
Enable I2C and SPI in raspi-config by entering terminal
sudo raspi-config
Go to interface option and enable I2C & SPI
In the breadboard, make use of LED, 1k resistor and jumper wires to create a circuit. Plug the ground jumper wire into the ground line of the breadboard and plug the other cable into one column of the breadboard. Now write a python program to control the LED function. To do that, we open nano editor to write programs.