def __init__(self, dout_pin, pd_sck_pin, gain=<NUM_LIT>, channel='<STR_LIT:A>'):
if (isinstance(dout_pin, int) and<EOL>isinstance(pd_sck_pin, int)):  <EOL><INDENT>self._pd_sck = pd_sck_pin  <EOL>self._dout = dout_pin  <EOL><DEDENT>else:<EOL><INDENT>raise TypeError('<STR_LIT>'+ str(dout_pin) +'<STR_LIT>' + str(pd_sck_pin) + '<STR_LIT:\n>')<EOL><DEDENT>GPIO.setmode(GPIO.BCM)  <EOL>GPIO.setup(self._pd_sck, GPIO.OUT)  <EOL>GPIO.setup(self._dout, GPIO.IN)  <EOL>self.channel = channel<EOL>self.channel_a_gain = gain<EOL>
:param dout_pin: number of the GPIO DOUT is connectedt to
:type dout_pin: int
:param pd_sck_pin: number of the GPIO SCK is connectedt to
:type int
:param gain: gain
:type gain: int
:param channel: selected channel
:type channel: str