@djthuma said in Add additional pin output for switch control:
@deckingman
I see the M950 command. But how should it be formatted?
I was using pin 62 to activate the switch.
If i have the M950 command in the config file written like this.
M950 P62 C"spi.cs7"
(is that correct, would that configure pin 62?)
Then a macro file that activated the switch when triggered.
M300 S1222 P444;
M42 P62 S.5
This is how I have it this minute, and it is not correctly working. I am getting an error ( Error:in file macro line 5: M42: 'P' too high )
thanks for the help so far
Read the documentation some more https://docs.duet3d.com/User_manual/Reference/Gcodes#m42-switch-io-pin
Once you have created the GPIO port using M950, you then refer to that port using M42 - not the pin number.