async def analog_write(self, pin, value):
        """
        Set the selected pin to the specified value.

        :param pin: PWM pin number

        :param value: Pin value (0 - 0x4000)

        :returns: No return value
        """
        if PrivateConstants.ANALOG_MESSAGE + pin < 0xf0:
            command = [PrivateConstants.ANALOG_MESSAGE + pin, value & 0x7f,
                       (value >> 7) & 0x7f]
            await self._send_command(command)
        else:
            await self.extended_analog(pin, value)
async def analog_write ( self , pin , value ) : if PrivateConstants . ANALOG_MESSAGE + pin < 0xf0 : command = [ PrivateConstants . ANALOG_MESSAGE + pin , value & 0x7f , ( value >> 7 ) & 0x7f ] await self . _send_command ( command ) else : await self . extended_analog ( pin , value )
Set the selected pin to the specified value.

        :param pin: PWM pin number

        :param value: Pin value (0 - 0x4000)

        :returns: No return value