New library to control a robot with two stepper motors

I mean, it is possible keep the motor stopped with the coils energized?

That's the way a stepper motor works, when not stepping.

If yours aren't, there is something wrong with your wiring or power supply.