5 Replies Latest reply on Aug 11, 2016 3:43 PM by FGT

    About Servo library

    FGT

      Hi,

       

      I've used the Arduino Servo library,

      Arduino - Servo

      which has two attach() functions Arduino - ServoAttach :

      servo.attach(pin)

      servo.attach(pin, min, max)

       

      I see that Intel Galileo Servo has other two attach functions:

        uint8_t attach(int16_t pin, bool force48hz = false);       // attach the given pin to the next free channel, sets pinMode, returns channel number or 0 if failure

        uint8_t attach(int pin, int min, int max, bool force48hz = false); // as above but also sets min and max values for writes.

      I assume (correct me if I'm worng) that the "force48hz" parameter would be for setting PWM period, but I would like to know why it is necessary in Galileo...

       

      TIA,

       

      Fernando.