脉冲宽度调制
使用 Raspberry Pi® 在 GPIO 引脚上创建脉冲宽度调制 (PWM) 信号
使用 Raspberry Pi 在 GPIO 引脚上创建脉冲宽度调制 (PWM) 信号。要使用 PWM 引脚,请使用 configurePin
函数将 GPIO 引脚配置为 PWM 引脚
对象
raspi | Connection to Raspberry Pi board |
函数
writePWMFrequency | Writes PWM frequency to a GPIO pin |
writePWMDutyCycle | Writes PWM duty cycle to PWM pin |
writePWMVoltage | Writes average PWM voltage to a GPIO pin |
主题
- Raspberry Pi PWM
Raspberry Pi pulse-width modulation (PWM) module.