示例#1
0
文件: mpsse.py 项目: hudkmr/libmpsse
    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
示例#2
0
	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