◆ Pwm() [1/2]
Constructs an empty PWM output for use
◆ Pwm() [2/2]
Pwm.Pwm |
( |
int |
pin, |
|
|
float |
pulseWidth |
|
) |
| |
Constructs a PWM output at the specified pin and at the desired percentage
- Parameters
-
pin | pin to output pwm signal |
pulseWidth | percent of pwm output, value between 0 to 100 |
◆ get_pin()
- Returns
- pin pwm signal is outputting
◆ get_pulse()
- Returns
- percent value of pwm signal
◆ get_value()
- Returns
- raw value of pwm signal between 0 to 255
◆ set_pin()
void Pwm.set_pin |
( |
int |
pin | ) |
|
Set pin parameter of pwm
- Parameters
-
pin | pin to output pwm signal |
◆ set_pulse()
void Pwm.set_pulse |
( |
float |
percent | ) |
|
Set value variable of pwm
The documentation for this class was generated from the following file: