Package hw
Class IO

Public Method setPWM1

static void setPWM1(int dutyCycle)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
dutyCycle 1 ... 9999 duty cycle in units of 0.01%

Configures the PWM 1 (on relay output 1) with the specified duty cycle.

Note

Example

IO.setPWM1(2000);

After calling this method, the PWM 1 on relay output 1 is running with a duty cycle of 20%. The resulting signal will have a rising edge every 1ms (1/1kHz = 1ms) and stay high for 0.2ms (20% of 1ms).

See also:

IO.setPWM0(int, int)
IO