packagePwm
PWM outputs (machine.PWM)
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
Contents
| Name | Description |
|---|---|
| GP0 drives an LED in PWM (machine.PWM), 200 Hz / ~30% duty cycle, set once then generated continuously on the Modelica side | |
| GP0 drives an LED in PWM (machine.PWM) at 1 kHz: the duty cycle rises from 0 to 100 % in 1 s, then falls back to 0 in 1 s |