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

Method set_descriptor

Software/Python/easysensors.py:314–323  ·  view source on GitHub ↗

Sets the object's description. :param str descriptor: The object's description. See more about class descriptors in :py:class:`~easysensors.Sensor`'s description.

(self, descriptor)

Source from the content-addressed store, hash-verified

312 # return (self.pin == DIGITAL)
313
314 def set_descriptor(self, descriptor):
315 """
316 Sets the object's description.
317
318 :param str descriptor: The object's description.
319
320 See more about class descriptors in :py:class:`~easysensors.Sensor`'s description.
321
322 """
323 self.descriptor = descriptor
324##########################
325
326

Callers 11

__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected