def __init__(self, board_mode='<STR_LIT>', pin=<NUM_LIT:4>):
if board_mode in self.MODES:<EOL><INDENT>self.run_mode = self.MODES[board_mode]<EOL><DEDENT>else:<EOL><INDENT>raise DHTException('<STR_LIT>' % board_mode)<EOL><DEDENT>GPIO.setmode(self.run_mode)<EOL>self.pin = pin<EOL>
Set board and  pin mode