Raspberry Pi - PWM Output
Given the code snippet below, what will be the printed output?
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(22, GPIO.OUT)
pwm = GPIO.PWM(22, 50)
pwm.start(2.5)
print('Started PWM with duty cycle:', 2.5)
pwm.ChangeDutyCycle(12.5)
print('Changed duty cycle to:', 12.5)
pwm.stop()
GPIO.cleanup()
