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

Method __init__

Software/Python/easysensors.py:328–333  ·  view source on GitHub ↗
(self, port, pinmode, gpg, use_mutex = False)

Source from the content-addressed store, hash-verified

326
327class DigitalSensor(Sensor):
328 def __init__(self, port, pinmode, gpg, use_mutex = False):
329 debug("DigitalSensor init")
330 try:
331 Sensor.__init__(self, port, pinmode, gpg, use_mutex)
332 except:
333 raise("Digital Sensor Init")
334
335 def read(self):
336 '''

Callers

nothing calls this directly

Calls 2

debugFunction · 0.70
__init__Method · 0.45

Tested by

no test coverage detected