Returns the spindle speed as measured by the encoder.
Retrieves the encoder-measured spindle speed as a floating-point value.
planetcnc.hw_spindle_enc()
#! /usr/bin/env python import planetcnc enc_speed = planetcnc.hw_spindle_enc() print("Spindle speed by encoder:", enc_speed)