writePWMDutyCycle
Writes PWM duty cycle to PWM pin
Add-On Required: This feature requires the MATLAB Support Package for BeagleBone Black Hardware add-on.
Description
writePWMDutyCycle( writes
the duty cycle of the output square wave to the output pin.bbb, pin_name, duty_cycle)
The BeagleBone Black board has eight PWM output pins. Each PWM
pin outputs a square waveform with variable frequency, duty cycle,
or average voltage. A duty cycle of 0 means the
waveform is always low and a duty cycle of 1 means
the waveform is always high.
To use a PWM pin, reconfigure one of the multiple-use GPIO pins as a PWM pin.

Examples
Input Arguments
Version History
Introduced in R2015a