hw_output_freq()

Returns the frequency of the specified output pin.

Syntax

planetcnc.hw_output_freq(index)

Parameters

Parameter Type Description Comment
index int The pin index. Must be between 1 and the maximum allowed value.

Return Value

Examples

#! /usr/bin/env python
 
import planetcnc
 
freq = planetcnc.hw_output_freq(1)
print("Output pin 1 frequency:", freq)

See also