@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")