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

Method get_port

Software/Python/easysensors.py:260–271  ·  view source on GitHub ↗

Gets the current port our device is connected to. :returns: The current set port. :rtype: str Apart from this graphical representation of the ports' locations (:ref:`hardware-ports-section` locations), take a look at the list of ports in :py:meth:`~easysens

(self)

Source from the content-addressed store, hash-verified

258 debug(self.portID)
259
260 def get_port(self):
261 """
262 Gets the current port our device is connected to.
263
264 :returns: The current set port.
265 :rtype: str
266
267 Apart from this graphical representation of the ports' locations (:ref:`hardware-ports-section` locations),
268 take a look at the list of ports in :py:meth:`~easysensors.Sensor.__init__`'s description.
269
270 """
271 return (self.port)
272
273 def get_port_ID(self):
274 """

Callers 1

__str__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected