|
|
|
@ -1809,12 +1809,30 @@
|
|
|
|
|
// @section extras
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Canon Hack Development Kit
|
|
|
|
|
* http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
|
|
|
|
|
*/
|
|
|
|
|
//#define CHDK_PIN 4 // Set and enable a pin for triggering CHDK to take a picture
|
|
|
|
|
#if PIN_EXISTS(CHDK)
|
|
|
|
|
#define CHDK_DELAY 50 // (ms) How long the pin should remain HIGH
|
|
|
|
|
* Photo G-code
|
|
|
|
|
* Add the M240 G-code to take a photo.
|
|
|
|
|
* The photo can be triggered by a digital pin or a physical movement.
|
|
|
|
|
*/
|
|
|
|
|
//#define PHOTO_GCODE
|
|
|
|
|
#if ENABLED(PHOTO_GCODE)
|
|
|
|
|
// A position to move to (and raise Z) before taking the photo
|
|
|
|
|
//#define PHOTO_POSITION { X_MAX_POS - 5, Y_MAX_POS, 0 } // { xpos, ypos, zraise }
|
|
|
|
|
//#define PHOTO_DELAY_MS 100 // (ms) Duration to pause before moving back
|
|
|
|
|
//#define PHOTO_RETRACT_MM 6.5 // (mm) E retract/recover for the photo move
|
|
|
|
|
|
|
|
|
|
// Canon RC-1 or homebrew digital camera trigger
|
|
|
|
|
// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
|
|
|
|
|
//#define PHOTOGRAPH_PIN 23
|
|
|
|
|
|
|
|
|
|
// Canon Hack Development Kit
|
|
|
|
|
// http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
|
|
|
|
|
//#define CHDK_PIN 4
|
|
|
|
|
|
|
|
|
|
// Optional second move with delay to trigger the camera shutter
|
|
|
|
|
//#define PHOTO_SWITCH_POSITION { X_MAX_POS, Y_MAX_POS } // { xpos, ypos }
|
|
|
|
|
|
|
|
|
|
// Duration to hold the switch or keep CHDK_PIN high
|
|
|
|
|
//#define PHOTO_SWITCH_MS 50 // (ms)
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|