Description:
Parameter | Range | Description |
---|---|---|
freq | 1 ... 1000000 | frequency in Hertz |
dutyCycle | 1 ... 9999 | duty cycle in units of 0.01% |
Configures the PWM 0 (on relay output 0) with the specified parameters.
Note
Example
IO.setPWM0(500, 8000);
After calling this method, the PWM 0 on relay output 0 is running with 500 Hertz and a duty cycle of 80%. The resulting signal will have a rising edge every 2ms (1/500Hz = 0.002s) and stay high for 1.6ms (80% of 2ms).
See also:
Copyright © demmel products gmbh. All rights reserved.