Esempio n. 1
0
    def PinState(self, pin, state=-1):
        """
		Checks the current state of the pins. For use in BITBANG mode only.
		Set pin to the pin number you want to check. 
		State is the value returned by ReadPins. If not specified, ReadPins will be called automatically.
		"""
        return _mpsse.PinState(self.context, pin, state)
Esempio n. 2
0
	def PinState(self, pin, state=-1):
		"""
		Checks the current state of the pins.

		@pin   - The pin number whose state you want to check.
		@state - pins Value. GPIOL[0-3], GPIOH[0-7] support

		Returns a 1 if the pin is high, 0 if the pin is low.
		"""
		return _mpsse.PinState(self.context, pin, state)
Esempio n. 3
0
	def PinState(self, pin, state=-1):
		"""
		Checks the current state of the pins.
		For use in BITBANG mode only.

		@pin   - The pin number whose state you want to check. 
		@state - The value returned by ReadPins. If not specified, ReadPins will be called automatically.

		Returns a 1 if the pin is high, 0 if the pin is low.
		"""
		return _mpsse.PinState(self.context, pin, state)