def __init__(self, pins, resolution, freq):
if not isinstance(pins, list):<EOL><INDENT>pins = [pins]<EOL><DEDENT>self._pins = pins<EOL>self._resolution = resolution<EOL>self._freq = freq<EOL>self._state = [<NUM_LIT:0>] * len(self._pins)<EOL>self._max_raw_value = math.pow(<NUM_LIT:2>, self._resolution) - <NUM_LIT:1><EOL>
Initialize the driver.

:param pins: The pin numbers that should be controlled.
:param resolution: The resolution of the pwm channel.
:param freq: The pwm frequency.