[−][src]Function mraa_sys::mraa_pwm_write
pub unsafe extern "C" fn mraa_pwm_write(
dev: mraa_pwm_context,
percentage: f32
) -> mraa_result_t
Set the output duty-cycle percentage, as a float
@param dev The Pwm context to use @param percentage A floating-point value representing percentage of output. The value should lie between 0.0f (representing on 0%) and 1.0f Values above or below this range will be set at either 0.0f or 1.0f @return Result of operation