default int |
Pwm.actualFrequency() |
Get the actual frequency value in Hertz (number of cycles per second)
applied by the PWM signal generator after the PWM signal is turned 'ON'.
|
Pwm |
Pwm.applyPreset(String name) |
Apply/recall a PwmPreset by name to this PWM instance.
|
Pwm |
PwmBase.applyPreset(String name) |
Apply/recall a PwmPreset by name to this PWM instance.
|
default float |
Pwm.dutyCycle() |
Get the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
default Pwm |
Pwm.dutyCycle(Number dutyCycle) |
Set the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
default int |
Pwm.frequency() |
Get the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should attempt to output when the PWM signal
is turned 'ON'.
|
default Pwm |
Pwm.frequency(int frequency) |
Set the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should use when the PWM signal is turned 'ON'.
|
int |
Pwm.getActualFrequency() |
Get the actual frequency value in Hertz (number of cycles per second)
applied by the PWM signal generator after the PWM signal is turned 'ON'.
|
int |
PwmBase.getActualFrequency() |
Get the actual frequency value in Hertz (number of cycles per second)
applied by the PWM signal generator after the PWM signal is turned 'ON'.
|
float |
Pwm.getDutyCycle() |
Get the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
float |
PwmBase.getDutyCycle() |
Get the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
int |
Pwm.getFrequency() |
Get the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should attempt to output when the PWM signal
is turned 'ON'.
|
int |
PwmBase.getFrequency() |
Get the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should attempt to output when the PWM signal
is turned 'ON'.
|
Pwm |
Pwm.off() |
Turn the PWM signal [OFF] by applying a zero frequency and zero duty-cycle to the PWM pin.
|
Pwm |
Pwm.on() |
Turn the PWM signal [ON] using the configured frequency and duty-cycle.
|
default Pwm |
Pwm.on(Number dutyCycle) |
Turn the PWM signal [ON] using a specified duty-cycle (%)
at the pre-configured frequency (Hz).
|
default Pwm |
Pwm.on(Number dutyCycle,
int frequency) |
Turn the PWM signal [ON] using a specified duty-cycle (%)
at the pre-configured frequency (Hz).
|
void |
Pwm.setDutyCycle(Number dutyCycle) |
Set the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
void |
PwmBase.setDutyCycle(Number dutyCycle) |
Set the duty-cycle value as a decimal value that represents the
percentage of the ON vs OFF time of the PWM signal for each
period.
|
void |
Pwm.setFrequency(int frequency) |
Set the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should use when the PWM signal is turned 'ON'.
|
void |
PwmBase.setFrequency(int frequency) |
Set the configured frequency value in Hertz (number of cycles per second)
that the PWM signal generator should use when the PWM signal is turned 'ON'.
|