Set Raspberry Pi PWM pin [value] to [value]% [value]Hz

Last modified by Stephan Robinig on 2021/02/22 10:42

Sets the specified Pin to the specified PWM duty cycle and frequency. More information on PWM can be found here.

set-raspberry-pi-pin-PWM.png

Example

This script makes the LED pulsate by cycling the PWM value of the pin between 0 and 100. 

Bsp_Wenn_Raspberry_Pi_Pin_Ändert_sich_zu.png

Result

null4.png

Gif_Wenn_Raspberry_Pi_Pin_ändert_sich_zu.gif