Returns the spindle direction as set by the user.
Positive values indicate clockwise (CW), negative values indicate counter-clockwise (CCW), and 0 indicates stopped.
planetcnc.hw_spindle_dir()
#! /usr/bin/env python import planetcnc direction = planetcnc.hw_spindle_dir() print("Spindle direction:", direction)