Module rust_pigpio::pwm [] [src]

Functions

get_pwm_duty_cycle

Returns the PWM dutycycle setting for the GPIO.

get_pwm_frequency

Returns the frequency in hertz used for the GPIO.

get_pwm_range

Returns the dutycycle range used for the GPIO.

get_pwm_real_range

Returns the real range used for the GPIO.

get_servo_pulse_width

Returns the servo pulsewidth setting for the GPIO.

hardware_clock

Starts a hardware clock on a GPIO at the specified frequency. Frequencies above 30MHz are unlikely to work.

hardware_pwm

Starts hardware PWM on a GPIO at the specified frequency and dutycycle. Frequencies above 30MHz are unlikely to work.

pwm

Starts PWM on the GPIO, dutycycle between 0 (off) and range (fully on). Range defaults to 255.

servo

Starts servo pulses on the GPIO, 0 (off), 500 (most anti-clockwise) to 2500 (most clockwise).

set_pwm_frequency

Sets the frequency in hertz to be used for the GPIO.

set_pwm_range

Selects the dutycycle range to be used for the GPIO.