Returns the duty cycle of a specified output pin.
planetcnc.hw_output_duty(index)
#! /usr/bin/env python import planetcnc duty = planetcnc.hw_output_duty(1) print("Output pin 1 duty cycle:", duty)