A pulse-width modulation digital output
Page last updated 23 Feb 2014, by
0
replies
.
- PwmOut (PinName pin)
- Create a PwmOut connected to the specified pin.
- Create a PwmOut connected to the specified pin.
- void - write (float value)
- Set the ouput duty-cycle, specified as a percentage (float)
- Set the ouput duty-cycle, specified as a percentage (float)
- float - read ()
- Return the current output duty-cycle setting, measured as a percentage (float)
- Return the current output duty-cycle setting, measured as a percentage (float)
- void - period (float seconds)
- Set the PWM period, specified in seconds (float), keeping the duty cycle the same.
- Set the PWM period, specified in seconds (float), keeping the duty cycle the same.
- void - period_ms (int ms)
- Set the PWM period, specified in milli-seconds (int), keeping the duty cycle the same.
- Set the PWM period, specified in milli-seconds (int), keeping the duty cycle the same.
- void - period_us (int us)
- Set the PWM period, specified in micro-seconds (int), keeping the duty cycle the same.
- Set the PWM period, specified in micro-seconds (int), keeping the duty cycle the same.
- void - pulsewidth (float seconds)
- Set the PWM pulsewidth, specified in seconds (float), keeping the period the same.
- Set the PWM pulsewidth, specified in seconds (float), keeping the period the same.
- void - pulsewidth_ms (int ms)
- Set the PWM pulsewidth, specified in milli-seconds (int), keeping the period the same.
- Set the PWM pulsewidth, specified in milli-seconds (int), keeping the period the same.
- void - pulsewidth_us (int us)
- Set the PWM pulsewidth, specified in micro-seconds (int), keeping the period the same.
- Set the PWM pulsewidth, specified in micro-seconds (int), keeping the period the same.
- PwmOut & - operator= (float value)
- An operator shorthand for write()
- An operator shorthand for write()
- PwmOut & - operator float ()
- An operator shorthand for read()
- An operator shorthand for read()
Please log in to post comments.