• ☑ Raspberry Pi 5B ☑ Raspberry Pi Zero 2W ☑ Raspberry Pi 4B ☑ Raspberry Pi 3B+ ☑ Raspberry Pi 3A+ ☑ Raspberry Pi Zero W ☑ Raspberry Pi 3B ☑ Raspberry Pi 2B ☑ Raspberry Pi B+ ☑ Raspberry Pi Model B 6
start PWM: • • p.start(dc) # dc is the duty cycle To change the duty cycle: • • p = GPIO.PWM(channel, frequency) p.ChangeDutyCycle(dc) # where 0.0 <= dc <= 100.0 To stop PWM: • p.stop() 148 http://sourceforge.net/p/raspberry-gpio-python/wiki/PWM/
pwm_led.start(0) while True: for dc in range(0, 101, 5): pwm_led.ChangeDutyCycle(dc) time.sleep(0.1) time.sleep(0.5) for dc in range(100, -1, -5): pwm_led.ChangeDutyCycle(dc) time.sleep(0.1) time.sleep(0.5) 152
• • MAME (AdvanceMAME) Nintendo Entertainment System (RetroArch) Super Nintendo Entertainment System (PiSNES) PC / x86 (rpix86) https://en.wikipedia.org/wiki/List_of_video_game_emulators 175