Controls the spindle operation.
If called with no arguments, it toggles the spindle state.
If called with one argument, it sets the spindle direction.
If called with two arguments, it sets the spindle direction and speed.
spindle() spindle(direction) spindle(direction, rpm)
Toggle spindle on/off
spindle();
Start spindle clockwise
spindle(1);
Start spindle counterclockwise
spindle(-1);
Start spindle clockwise at 1200 RPM
spindle(1, 1200);
Stop spindle
spindle(0);