The class doc states that it expects a Pin but, when given a Pin object, the library throws this error:
>>> light = APDS9960(i2c, interrupt_pin=board.PROXIMITY_LIGHT_INTERRUPT)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "adafruit_apds9960/apds9960.py", line 155, in __init__
AttributeError: 'Pin' object has no attribute 'switch_to_input'
Since this internal variable is never used it may be best to just remove it.
The class doc states that it expects a
Pin
but, when given aPin
object, the library throws this error:Since this internal variable is never used it may be best to just remove it.