from adafruit_blinka.microcontroller.allwinner_h3.pin import Pin
elif detector.chip.SAMA5:
from adafruit_blinka.microcontroller.sama5.pin import Pin
+elif detector.chip.TEGRAXXX:
+ from adafruit_blinka.microcontroller.tegra.pin import Pin
elif detector.chip.STM32:
from machine import Pin
from adafruit_blinka import Enum, ContextManaged
def deinit(self):
del self._pin
+ def cleanup(self, channel=None):
+ if channel == self:
+ Pin.cleanup(self._pin, self._pin)
+ else:
+ Pin.cleanup(self, channel)
+
@property
def direction(self):
return self.__direction