LED BLINK USE Raspberry Pi

-- GPIO -- -- GPIO Control --

1) connect -ve of led to pin 6 (ground)
2) connect +ve of led to pin 8 (GPIO 14 TXD)

code


import RPi.GPIO as GPIO
import time
        
reset_pin = 8
        
        
GPIO.setmode(GPIO.BOARD)
GPIO.setup(reset_pin, GPIO.OUT)
GPIO.output(reset_pin, GPIO.HIGH)
        
        
time.sleep(1)
GPIO.output(reset_pin , GPIO.LOW)
    

Install rpi package

sudo pip3 install rpi