def PinHigh(self, pin): """ Sets the specified GPIO pin high. The pin can be GPIO pin 0 - 11. """ if _mpsse.PinHigh(self.context, pin) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK
def PinHigh(self, pin): """ Sets the specified GPIO pin high. @pin - Pin number 0 - 11 in GPIO mode. In all other modes, one of: GPIOL0, GPIOL1, GPIOL2, GPIOL3, GPIOH0, GPIOH1, GPIOH2, GPIOH3, GPIOH4, GPIOH5, GPIOH6, GPIOH7. Returns MPSSE_OK on success. Raises an exception on failure. """ if _mpsse.PinHigh(self.context, pin) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK