Also i do not understand what exactly you try, out of filament detection does not toggle nay pins for pause, Depending on your settings it would show filament change or request for pause on serial. But you can easily exdend these function to do more like toggling a pin,