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

Last modified by admin on 2023/11/27 20:22

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