Interface GpioPinPwmOutput

    • Method Detail

      • setPwm

        void setPwm​(int value)
        Set the PWM value/rate to toggle the GPIO pin. If this is a hardware PWM pin, the value should be between a range of 0 to 1024. If this is a software emulated PWM pin, the value should be between a range of 0 to 100.
        Parameters:
        value -
      • setPwmRange

        void setPwmRange​(int range)
        This sets the range register in the PWM generator. The default is 1024 for hardware PWM. The default is 100 for software emulated PWM.
        Parameters:
        range -