Pulse-Width Modulation (PWM) is a fancy term for a simple concept: turning a switch ON and OFF really fast. By doing this, we can control “analog” things—like dimming an LED light, controlling the speed of a fan, or regulating the heat of an electric heater—using a digital switch.
The Rule: You can choose *how long* each socket stays ON (brightness/heat), but they all must share the same *speed* (frequency).
What this means for you:
You cannot set the frequency directly in your code. Instead, you configure the PWM Cycle and PWM Prescale in the Properties panel of the controller.
These settings determine the base frequency for the entire group of outputs.
When your controller first turns on, you don't want your heaters or fans to pulse randomly while the system wakes up. Follow this “Safe Start” order in your program: