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

Method get_pin

Software/Python/easysensors.py:216–224  ·  view source on GitHub ↗

Tells us which pin of the grove connector is used. :returns: For exterior pins (aka SIG) it returns :py:data:`gopigo3.GROVE_2_1` or :py:data:`gopigo3.GROVE_2_2` and for interior pins (aka NC) it returns :py:data:`gopigo3.GROVE_1_2` or :py:data:`gopigo3.GROVE_1_2`. :rtype: i

(self)

Source from the content-addressed store, hash-verified

214 debug("setting pin to {}".format(self.pin))
215
216 def get_pin(self):
217 """
218 Tells us which pin of the grove connector is used.
219
220 :returns: For exterior pins (aka SIG) it returns :py:data:`gopigo3.GROVE_2_1` or :py:data:`gopigo3.GROVE_2_2` and for interior pins (aka NC) it returns :py:data:`gopigo3.GROVE_1_2` or :py:data:`gopigo3.GROVE_1_2`.
221 :rtype: int
222
223 """
224 return self.pin
225
226 def set_port(self, port):
227 """

Callers 3

readMethod · 0.80
readMethod · 0.80
writeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected