* 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
@property
def value(self):
- """Get or Set the Digital Pin Value"""
+ """The Digital Pin Value"""
return self._pin.value() == 1
@value.setter
@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")
@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")