Returns the state of the auxiliary port for the specified pin.
The pin index starts from 1 up to the maximum defined by the controller.
planetcnc.hw_aux(index)
#! /usr/bin/env python import planetcnc # Get the state of aux port pin 1 aux_state = planetcnc.hw_aux(1) print("Aux port pin 1 state:", aux_state)