예제 #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
파일: mpsse.py 프로젝트: tengyifei/libmpsse
	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