Raspberry Pi - Platform
Identify the error in this code snippet for blinking an LED on pin 8:
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BOARD)
GPIO.setup(8, GPIO.OUT)
while True:
GPIO.output(8, HIGH)
time.sleep(0.5)
GPIO.output(8, LOW)
time.sleep(0.5)