Pwm |
Pwm.addPreset(PwmPreset preset) |
Add a new PwmPreset to this PWM instance.
|
Pwm |
PwmBase.addPreset(PwmPreset preset) |
Add a new PwmPreset to this PWM instance.
|
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 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 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'.
|
Pwm |
PwmBase.initialize(Context context) |
initialize.
|
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).
|
Pwm |
PwmBase.shutdown(Context context) |
shutdown.
|