Package hw
Class IO

Public Method setPWMFrequency

static void setPWMFrequency(int freq)

Throws:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Parameter Range Description
freq 1 ... 100,000,000 frequency in hertz

This method specifies the pwm frequency for all pwm pins.

Note

Example

  IO.setPWMFrequency(10000);

See also:

IO.getPWMCurrentDutyCycle(byte)
IO.getPWMCurrentDutyCycleResolution(byte)
IO.getPWMCurrentPeriodResolution()
IO.getPWMOnOff(byte)
IO.setPWMDutyCycle(float, byte)
IO.setPWMOnOff(boolean, byte)