PWM
使用 BeagleBone® Black 脉冲宽度调制模块
使用 BeagleBone Black 在 GPIO 引脚上创建脉冲宽度调制 (PWM) 信号。
对象
beaglebone | Connection to BeagleBone Black hardware |
函数
clear | Terminate connection to BeagleBone Black hardware |
showAllPins | Show diagram of all pins |
showPins | Show diagram of GPIO pins |
enablePWM | Enable PWM pin |
writePWMDutyCycle | Writes PWM duty cycle to PWM pin |
writePWMFrequency | Writes PWM frequency to PWM pin |
writePWMVoltage | Writes average PWM voltage to PWM pin |
主题
- Use BeagleBone Black PWM to Capture PWM Measurements
This example shows how to use the BeagleBone Black PWM to generate a square wave of given frequency and duty cycle.
- BeagleBone Black PWM
BeagleBone Black pulse-width modulation (PWM) module.
- BeagleBone Black Pin Map
Detailed description of BeagleBone Black pin map.
疑难解答
Troubleshoot BeagleBone Black PWM
BeagleBone Black pulse-width modulation (PWM) module.