Main Content

脉冲宽度调制

使用 Raspberry Pi® 在 GPIO 引脚上创建脉冲宽度调制 (PWM) 信号

使用 Raspberry Pi 在 GPIO 引脚上创建脉冲宽度调制 (PWM) 信号。要使用 PWM 引脚,请使用 configurePin 函数将 GPIO 引脚配置为 PWM 引脚

对象

raspiConnection to Raspberry Pi board

函数

writePWMFrequencyWrites PWM frequency to a GPIO pin
writePWMDutyCycleWrites PWM duty cycle to PWM pin
writePWMVoltageWrites average PWM voltage to a GPIO pin

主题