I was wondering if it's possible to use the attach() and detach() function on a Stepper Motor
Why do you want to do that ?