X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka.git/blobdiff_plain/1fa4862c3469261191e4e61ff5aa1f163b15517f..9d61af1c25aa8a4e2236f196b6f64409e0984eb4:/src/digitalio.py diff --git a/src/digitalio.py b/src/digitalio.py index e77d910..2df6081 100755 --- a/src/digitalio.py +++ b/src/digitalio.py @@ -7,6 +7,11 @@ See `CircuitPython:digitalio` in CircuitPython for more details. * Author(s): cefn """ + +__version__ = "0.0.0-auto.0" +__repo__ = "https://github.com/adafruit/Adafruit_Blinka.git" + + from adafruit_blinka.agnostic import board_id, detector # pylint: disable=ungrouped-imports,wrong-import-position @@ -176,7 +181,7 @@ class DigitalInOut(ContextManaged): @property def value(self): - """Get or Set the Digital Pin Value""" + """The Digital Pin Value""" return self._pin.value() == 1 @value.setter @@ -188,7 +193,7 @@ class DigitalInOut(ContextManaged): @property def pull(self): - """Get or Set the Digital Pin Direction""" + """The pin pull direction""" if self.direction is Direction.INPUT: return self.__pull raise AttributeError("Not an input") @@ -215,7 +220,7 @@ class DigitalInOut(ContextManaged): @property def drive_mode(self): - """Get or Set the Digital Pin Drive Mode""" + """The Digital Pin Drive Mode""" if self.direction is Direction.OUTPUT: return self.__drive_mode # raise AttributeError("Not an output")