Skip to content

Commit dbbf884

Browse files
author
Ramsay, Grant (NZ)
committed
Python 2 compatibility
1 parent d92ef26 commit dbbf884

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

python/VL53L0X.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ def get_timing(self):
157157
return 0
158158

159159
def configure_gpio_interrupt(
160-
self, proximity_alarm_type: Vl53l0xGpioAlarmType = Vl53l0xGpioAlarmType.THRESHOLD_CROSSED_LOW,
161-
interrupt_polarity: Vl53l0xInterruptPolarity = Vl53l0xInterruptPolarity.HIGH,
162-
threshold_low_mm: int = 250, threshold_high_mm: int = 500):
160+
self, proximity_alarm_type=Vl53l0xGpioAlarmType.THRESHOLD_CROSSED_LOW,
161+
interrupt_polarity=Vl53l0xInterruptPolarity.HIGH, threshold_low_mm=250, threshold_high_mm=500):
163162
"""
164163
Configures a GPIO interrupt from device, be sure to call "clear_interrupt" after interrupt is processed.
165164
"""

0 commit comments

Comments
 (0)