pass pin back to interrupt callback function