Raspberry Pi - GPIO Basics with Python
Identify the error in this code snippet:
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
try:
GPIO.setup(18, GPIO.OUT)
GPIO.output(18, true)
except:
GPIO.cleanup()