def setup(self, pin, mode, pull_up_down=PUD_OFF):
self.bbio_gpio.setup(pin, self._dir_mapping[mode],<EOL>pull_up_down=self._pud_mapping[pull_up_down])<EOL>
Set the input or output mode for a specified pin.  Mode should be
        either OUTPUT or INPUT.