Controls an output pin on the machine.
If called with one parameter, it toggles the pin state.
If called with two parameters, it sets the pin state explicitly.
output(pin) output(pin, state)
Toggle output pin 5
output(5);
Turn on output pin 3
output(3, 1);
Turn off output pin 7
output(7, 0);