def setAlarm(self, pin, callback):
    self.removeAlarm()
    self.alarm_pin = pin
    pinMode(self.alarm_pin, INPUT, PULLUP)
    attachInterrupt(self.alarm_pin, callback, FALLING)
setAlarm(alarm_pin , callback)
dataset/ETHPy150Open graycatlabs/PyBBIO/bbio/libraries/ADT7310/adt7310.py/ADT7310.setAlarm