M240 - Trigger Camera
Description
Trigger a camera shutter using a digital pin or by bumping a physical switch.
Notes
CHDK_PIN
or PHOTOGRAPH_PIN
is required prior to Marlin 2.0.0.
To use the CHDK_PIN
or PHOTOGRAPH_PIN
option with a digital camera see this article.
To use an endstop or contact switch as a shutter switch for your smartphone’s camera, see this video.
Parameters
M240
[A<offset>]
[B<offset>]
[D<ms>]
[F<feedrate>]
[I<pos>]
[J<pos>]
[P<ms>]
[R<length>]
[S<feedrate>]
[X<pos>]
[Y<pos>]
[Z<length>]
[A<offset>]
|
Offset to the X return position. (Requires |
[B<offset>]
|
Offset to the Y return position. (Requires |
[D<ms>]
|
Duration to hold down the shutter switch. (Requires |
[F<feedrate>]
|
Feedrate for the main photo moves. If omitted, the homing feedrate will be used. (Requires |
[I<pos>]
|
Shutter switch X position. If omitted, the photo move X position applies. (Requires |
[J<pos>]
|
Shutter switch Y position. If omitted, the photo move Y position applies. (Requires |
[P<ms>]
|
Delay after pressing the shutter switch. (Requires |
[R<length>]
|
Retract/recover length. (Requires |
[S<feedrate>]
|
Retract/recover feedrate. (Requires |
[X<pos>]
|
Main photo move X position. (Requires |
[Y<pos>]
|
Main photo move Y position. (Requires |
[Z<length>]
|
Main photo move Z raise. (Requires |