interrupt pin now stored in a global var