def PinLow(self, pin): """ Sets the specified GPIO pin low. The Pin can be GPIO pin 0 - 11. """ if _mpsse.PinLow(self.context, pin) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK
def PinLow(self, pin): """ Sets the specified GPIO pin low. @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.PinLow(self.context, pin) == MPSSE_FAIL: raise Exception, self.ErrorString() return MPSSE_OK