diff --git a/M42.mediawiki b/M42.mediawiki index d1ab985..a019749 100644 --- a/M42.mediawiki +++ b/M42.mediawiki @@ -1,13 +1,13 @@ -==== Description ==== += Description = Directly change a hardware pin's state. If no pin is specified, the LED pin is assumed. -==== Example ==== += Example = M42 P9 S1 Set the state of Pin 9 to 1. -==== Arguments ==== += Arguments = P An optional pin number. If omitted use the LED pin. S Required. The state value to set, 0-255. -==== Discussion ==== += Discussion = M42 immediately changes a hardware pin's state. This can cause bad things to happen if not used correctly. Use with caution! If you need the pin change to wait for the last-queued move, precede it with [[M400]].