import RPi.GPIO as GPIO # Import library for GPIO (pin) access GPIO.setmode(GPIO.BOARD) # Specify that we use the BOARD numbers (pin numbers 1-26 on the connector) GPIO.setwarnings(False) # Disable the warning "This channel is already in use" # ******** PIN CONFIGURATION ************************************* GPIO.setup(22, GPIO.OUT) # Configure pin 22 as an output (OUT) # **************************************************************** GPIO.output(22, 1) # Send a logic 1 to pin 22, i.e. turn on the LED connected to pin 22