Пример #1
0
Файл: pwm.c Проект: Hbrinj/mraa
mraa_result_t
mraa_pwm_pulsewidth(mraa_pwm_context dev, float seconds)
{
    return mraa_pwm_pulsewidth_ms(dev, seconds * 1000);
}
Пример #2
0
 /**
  * Set pulsewidth, milliseconds
  *
  * @param ms milliseconds for pulsewidth
  * @return Result of operation
  */
 mraa_result_t
 pulsewidth_ms(int ms)
 {
     return mraa_pwm_pulsewidth_ms(m_pwm, ms);
 }