Very happy with this one. First day using a breadboard and just followed this super basic tutorial. Literally just a copy and paste job.
Link:
https://raspberrypihq.com/making-a-le...
Code:
import RPi.GPIO as GPIO # Import Raspberry Pi GPIO library
from time import sleep # Import the sleep function from the time module
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(8, GPIO.OUT, initial=GPIO.LOW) # Set pin 8 to be an output pin and set initial value to low (off)
while True: # Run forever
GPIO.output(8, GPIO.HIGH) # Turn on
sleep(1) # Sleep for 1 second
GPIO.output(8, GPIO.LOW) # Turn off
sleep(1) # Sleep for 1 second
In questa pagina del sito puoi guardare il video online My First Raspberry Pi Project - Blinking An LED Using Python Programming della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Hamed Adefuwa 22 gennaio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 307 volte e gli è piaciuto 6 spettatori. Buona visione!