Updated M42 (mediawiki)
parent
7aa8ffec03
commit
dcbbc39c7a
1 changed files with 4 additions and 4 deletions
|
|
@ -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<pin> An optional pin number. If omitted use the LED pin.
|
||||
S<value> 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]].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue