The switch is a component that connect two points in a circuit when you press it.LED turns on when you press the button. Hardware Required Push Button. LED Resistor Raspberry pi Jumper wires Breadboard Circuit Code Create a new text file “switch.py” by typing the following  “nano switch.py” Now type the following code  import RPi.GPIO as GPIO … Continue reading Raspberry-Switch