Raspberry Pi - PWM Output
You wrote this code to control an LED brightness with PWM on Raspberry Pi but the LED stays fully on:
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) pin = 18 GPIO.setup(pin, GPIO.OUT) pwm = GPIO.PWM(pin, 100) pwm.start(100)What is the likely mistake?
