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

Method get_port_ID

Software/Python/easysensors.py:273–283  ·  view source on GitHub ↗

Gets the ID of the port we're set to. :returns: The ID of the port we're set to. :rtype: int See more about port IDs in :py:class:`~easysensors.Sensor`'s description.

(self)

Source from the content-addressed store, hash-verified

271 return (self.port)
272
273 def get_port_ID(self):
274 """
275 Gets the ID of the port we're set to.
276
277 :returns: The ID of the port we're set to.
278 :rtype: int
279
280 See more about port IDs in :py:class:`~easysensors.Sensor`'s description.
281
282 """
283 return (self.portID)
284
285 def set_pin_mode(self, pinmode):
286 """

Callers 4

write_freqMethod · 0.80
is_too_closeMethod · 0.80
read_mmMethod · 0.80
readMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected