MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / get_pin_mode

Method get_pin_mode

Software/Python/easysensors.py:296–306  ·  view source on GitHub ↗

Gets the pin mode of the port we're set to. :returns: The pin mode of the port. :rtype: str See more about pin modes in :py:meth:`~easysensors.Sensor.__init__`'s description.

(self)

Source from the content-addressed store, hash-verified

294 self.pinmode = pinmode
295
296 def get_pin_mode(self):
297 """
298 Gets the pin mode of the port we're set to.
299
300 :returns: The pin mode of the port.
301 :rtype: str
302
303 See more about pin modes in :py:meth:`~easysensors.Sensor.__init__`'s description.
304
305 """
306 return (self.pinmode)
307
308 # def is_analog(self):
309 # return (self.pin == ANALOG)

Callers 2

reconfig_busMethod · 0.95
__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected