Writes PWM frequency to PWM pin
writePWMFrequency(bbb, pin_name, frequency)
Enable PWM pin
P9_14 (PWM1A) and
set the frequency and duty cycle.
bbb = beaglebone(); enable(bbb, 'P9_14'); writePWMDutyCycle(bbb, 'P9_14', 0.5); writePWMFrequency(bbb, 'P9_14', 2000);
The result is a square wave with a 50.0% duty cycle, frequency
of 2000 hertz, and average voltage of
frequency— Frequency of output waveform, in Hz
Frequency to assign to output pin, in Hz. The value is constrained to the minimum and maximum values that the PWM hardware can support.