Explorar el Código

Update and fix CHDK

Scott Lahteine hace 5 años
padre
commit
498dfa291e
Se han modificado 63 ficheros con 548 adiciones y 137 borrados
  1. 12
    6
      Marlin/Configuration_adv.h
  2. 8
    8
      Marlin/src/Marlin.cpp
  3. 9
    2
      Marlin/src/config/default/Configuration_adv.h
  4. 9
    2
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 9
    2
      Marlin/src/config/examples/Anet/A2/Configuration_adv.h
  6. 9
    2
      Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h
  7. 9
    2
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  8. 9
    2
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  9. 9
    2
      Marlin/src/config/examples/ArmEd/Configuration_adv.h
  10. 9
    2
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h
  11. 9
    2
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h
  12. 9
    2
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  13. 9
    2
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  14. 9
    2
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  15. 9
    2
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  16. 9
    2
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  17. 9
    2
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  18. 9
    2
      Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h
  19. 9
    2
      Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h
  20. 9
    2
      Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h
  21. 9
    2
      Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h
  22. 9
    2
      Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h
  23. 9
    2
      Marlin/src/config/examples/Einstart-S/Configuration_adv.h
  24. 9
    2
      Marlin/src/config/examples/Felix/Configuration_adv.h
  25. 9
    2
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  26. 9
    2
      Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h
  27. 9
    2
      Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h
  28. 9
    2
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h
  29. 9
    2
      Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h
  30. 9
    2
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h
  31. 9
    2
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h
  32. 9
    2
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  33. 9
    2
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  34. 9
    2
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  35. 9
    2
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  36. 9
    2
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  37. 9
    2
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  38. 9
    2
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  39. 9
    2
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  40. 9
    2
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  41. 9
    2
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  42. 9
    2
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  43. 9
    2
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  44. 9
    2
      Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h
  45. 9
    2
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  46. 9
    2
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  47. 9
    2
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  48. 9
    2
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  49. 9
    2
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h
  50. 9
    2
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  51. 9
    2
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  52. 9
    2
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  53. 9
    2
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  54. 9
    2
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  55. 9
    2
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  56. 9
    2
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  57. 9
    2
      Marlin/src/config/examples/makibox/Configuration_adv.h
  58. 9
    2
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  59. 9
    2
      Marlin/src/config/examples/wt150/Configuration_adv.h
  60. 10
    6
      Marlin/src/gcode/feature/camera/M240.cpp
  61. 1
    1
      Marlin/src/gcode/gcode.cpp
  62. 2
    2
      Marlin/src/gcode/gcode.h
  63. 2
    0
      Marlin/src/inc/SanityCheck.h

+ 12
- 6
Marlin/Configuration_adv.h Ver fichero

@@ -562,12 +562,9 @@
562 562
 //=============================Additional Features===========================
563 563
 //===========================================================================
564 564
 
565
-#define ENCODER_RATE_MULTIPLIER         // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
566
-#define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567
-#define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568
-
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
565
+#define ENCODER_RATE_MULTIPLIER       // If defined, certain menu edit operations automatically multiply the steps when the encoder is moved quickly
566
+#define ENCODER_10X_STEPS_PER_SEC  30 // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567
+#define ENCODER_100X_STEPS_PER_SEC 80 // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
571 568
 
572 569
 // @section lcd
573 570
 
@@ -1499,6 +1496,15 @@
1499 1496
 // @section extras
1500 1497
 
1501 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1502 1508
  * Spindle & Laser control
1503 1509
  *
1504 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 8
- 8
Marlin/src/Marlin.cpp Ver fichero

@@ -191,9 +191,9 @@ volatile bool wait_for_heatup = true;
191 191
 millis_t max_inactive_time, // = 0
192 192
          stepper_inactive_time = (DEFAULT_STEPPER_DEACTIVE_TIME) * 1000UL;
193 193
 
194
-#ifdef CHDK
195
-  millis_t chdkHigh; // = 0;
196
-  bool chdkActive; // = false;
194
+#if PIN_EXISTS(CHDK)
195
+  extern bool chdk_active;
196
+  extern millis_t chdk_timeout;
197 197
 #endif
198 198
 
199 199
 #if ENABLED(I2C_POSITION_ENCODERS)
@@ -323,7 +323,7 @@ void disable_all_steppers() {
323 323
  *  - Keep the command buffer full
324 324
  *  - Check for maximum inactive time between commands
325 325
  *  - Check for maximum inactive time between stepper commands
326
- *  - Check if pin CHDK needs to go LOW
326
+ *  - Check if CHDK_PIN needs to go LOW
327 327
  *  - Check for KILL button held down
328 328
  *  - Check for HOME button held down
329 329
  *  - Check if cooling fan needs to be switched on
@@ -374,10 +374,10 @@ void manage_inactivity(const bool ignore_stepper_queue/*=false*/) {
374 374
     }
375 375
   }
376 376
 
377
-  #ifdef CHDK // Check if pin should be set to LOW after M240 set it to HIGH
378
-    if (chdkActive && ELAPSED(ms, chdkHigh + CHDK_DELAY)) {
379
-      chdkActive = false;
380
-      WRITE(CHDK, LOW);
377
+  #if PIN_EXISTS(CHDK) // Check if pin should be set to LOW (after M240 set it HIGH)
378
+    if (chdk_active && ELAPSED(ms, chdk_timeout)) {
379
+      chdk_active = false;
380
+      WRITE(CHDK_PIN, LOW);
381 381
     }
382 382
   #endif
383 383
 

+ 9
- 2
Marlin/src/config/default/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1499,6 +1497,15 @@
1499 1497
 // @section extras
1500 1498
 
1501 1499
 /**
1500
+ * Canon Hack Development Kit
1501
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1502
+ */
1503
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1504
+#if PIN_EXISTS(CHDK)
1505
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1506
+#endif
1507
+
1508
+/**
1502 1509
  * Spindle & Laser control
1503 1510
  *
1504 1511
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Anet/A2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Anet/A2plus/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Anet/A6/Configuration_adv.h Ver fichero

@@ -565,8 +565,6 @@
565 565
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
566 566
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
567 567
 
568
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
569
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
570 568
 
571 569
 // @section lcd
572 570
 
@@ -1497,6 +1495,15 @@
1497 1495
 // @section extras
1498 1496
 
1499 1497
 /**
1498
+ * Canon Hack Development Kit
1499
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1500
+ */
1501
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1502
+#if PIN_EXISTS(CHDK)
1503
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1504
+#endif
1505
+
1506
+/**
1500 1507
  * Spindle & Laser control
1501 1508
  *
1502 1509
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Anet/A8/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/ArmEd/Configuration_adv.h Ver fichero

@@ -538,8 +538,6 @@
538 538
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
539 539
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
540 540
 
541
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
542
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
543 541
 
544 542
 // @section lcd
545 543
 
@@ -1472,6 +1470,15 @@
1472 1470
 // @section extras
1473 1471
 
1474 1472
 /**
1473
+ * Canon Hack Development Kit
1474
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1475
+ */
1476
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1477
+#if PIN_EXISTS(CHDK)
1478
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1479
+#endif
1480
+
1481
+/**
1475 1482
  * Spindle & Laser control
1476 1483
  *
1477 1484
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration_adv.h Ver fichero

@@ -565,8 +565,6 @@
565 565
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
566 566
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
567 567
 
568
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
569
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
570 568
 
571 569
 // @section lcd
572 570
 
@@ -1497,6 +1495,15 @@
1497 1495
 // @section extras
1498 1496
 
1499 1497
 /**
1498
+ * Canon Hack Development Kit
1499
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1500
+ */
1501
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1502
+#if PIN_EXISTS(CHDK)
1503
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1504
+#endif
1505
+
1506
+/**
1500 1507
  * Spindle & Laser control
1501 1508
  *
1502 1509
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/BIBO/TouchX/default/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h Ver fichero

@@ -574,8 +574,6 @@
574 574
 #define ENCODER_10X_STEPS_PER_SEC  30 // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
575 575
 #define ENCODER_100X_STEPS_PER_SEC 50 // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
576 576
 
577
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
578
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
579 577
 
580 578
 // @section lcd
581 579
 
@@ -1506,6 +1504,15 @@
1506 1504
 // @section extras
1507 1505
 
1508 1506
 /**
1507
+ * Canon Hack Development Kit
1508
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1509
+ */
1510
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1511
+#if PIN_EXISTS(CHDK)
1512
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1513
+#endif
1514
+
1515
+/**
1509 1516
  * Spindle & Laser control
1510 1517
  *
1511 1518
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Cartesio/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/CR-10mini/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/CR-8/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/Ender-2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/Ender-3/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Creality/Ender-4/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Einstart-S/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Felix/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Formbot/Raptor/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Formbot/T_Rex_2+/Configuration_adv.h Ver fichero

@@ -570,8 +570,6 @@
570 570
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
571 571
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
572 572
 
573
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
574
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
575 573
 
576 574
 // @section lcd
577 575
 
@@ -1502,6 +1500,15 @@
1502 1500
 // @section extras
1503 1501
 
1504 1502
 /**
1503
+ * Canon Hack Development Kit
1504
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1505
+ */
1506
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1507
+#if PIN_EXISTS(CHDK)
1508
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1509
+#endif
1510
+
1511
+/**
1505 1512
  * Spindle & Laser control
1506 1513
  *
1507 1514
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration_adv.h Ver fichero

@@ -571,8 +571,6 @@
571 571
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
572 572
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
573 573
 
574
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
575
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
576 574
 
577 575
 // @section lcd
578 576
 
@@ -1503,6 +1501,15 @@
1503 1501
 // @section extras
1504 1502
 
1505 1503
 /**
1504
+ * Canon Hack Development Kit
1505
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1506
+ */
1507
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1508
+#if PIN_EXISTS(CHDK)
1509
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1510
+#endif
1511
+
1512
+/**
1506 1513
  * Spindle & Laser control
1507 1514
  *
1508 1515
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Geeetech/MeCreator2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1499,6 +1497,15 @@
1499 1497
 // @section extras
1500 1498
 
1501 1499
 /**
1500
+ * Canon Hack Development Kit
1501
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1502
+ */
1503
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1504
+#if PIN_EXISTS(CHDK)
1505
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1506
+#endif
1507
+
1508
+/**
1502 1509
  * Spindle & Laser control
1503 1510
  *
1504 1511
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/MakerParts/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 300  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h Ver fichero

@@ -567,8 +567,6 @@
567 567
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
568 568
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
569 569
 
570
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
571
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
572 570
 
573 571
 // @section lcd
574 572
 
@@ -1506,6 +1504,15 @@
1506 1504
 // @section extras
1507 1505
 
1508 1506
 /**
1507
+ * Canon Hack Development Kit
1508
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1509
+ */
1510
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1511
+#if PIN_EXISTS(CHDK)
1512
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1513
+#endif
1514
+
1515
+/**
1509 1516
  * Spindle & Laser control
1510 1517
  *
1511 1518
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/RigidBot/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 //#define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 //#define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/SCARA/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/TheBorg/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Tronxy/X3A/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h Ver fichero

@@ -579,8 +579,6 @@
579 579
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
580 580
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
581 581
 
582
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
583
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
584 582
 
585 583
 // @section lcd
586 584
 
@@ -1511,6 +1509,15 @@
1511 1509
 // @section extras
1512 1510
 
1513 1511
 /**
1512
+ * Canon Hack Development Kit
1513
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1514
+ */
1515
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1516
+#if PIN_EXISTS(CHDK)
1517
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1518
+#endif
1519
+
1520
+/**
1514 1521
  * Spindle & Laser control
1515 1522
  *
1516 1523
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/generic/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h Ver fichero

@@ -568,8 +568,6 @@
568 568
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
569 569
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
570 570
 
571
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
572
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
573 571
 
574 572
 // @section lcd
575 573
 
@@ -1500,6 +1498,15 @@
1500 1498
 // @section extras
1501 1499
 
1502 1500
 /**
1501
+ * Canon Hack Development Kit
1502
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1503
+ */
1504
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1505
+#if PIN_EXISTS(CHDK)
1506
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1507
+#endif
1508
+
1509
+/**
1503 1510
  * Spindle & Laser control
1504 1511
  *
1505 1512
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/makibox/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h Ver fichero

@@ -566,8 +566,6 @@
566 566
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
567 567
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
568 568
 
569
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
570
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
571 569
 
572 570
 // @section lcd
573 571
 
@@ -1498,6 +1496,15 @@
1498 1496
 // @section extras
1499 1497
 
1500 1498
 /**
1499
+ * Canon Hack Development Kit
1500
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1501
+ */
1502
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1503
+#if PIN_EXISTS(CHDK)
1504
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1505
+#endif
1506
+
1507
+/**
1501 1508
  * Spindle & Laser control
1502 1509
  *
1503 1510
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 9
- 2
Marlin/src/config/examples/wt150/Configuration_adv.h Ver fichero

@@ -567,8 +567,6 @@
567 567
 #define ENCODER_10X_STEPS_PER_SEC 75    // If the encoder steps per sec exceeds this value, multiply steps moved x10 to quickly advance the value
568 568
 #define ENCODER_100X_STEPS_PER_SEC 160  // If the encoder steps per sec exceeds this value, multiply steps moved x100 to really quickly advance the value
569 569
 
570
-//#define CHDK 4        //Pin for triggering CHDK to take a picture see how to use it here http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
571
-#define CHDK_DELAY 50 //How long in ms the pin should stay HIGH before going LOW again
572 570
 
573 571
 // @section lcd
574 572
 
@@ -1499,6 +1497,15 @@
1499 1497
 // @section extras
1500 1498
 
1501 1499
 /**
1500
+ * Canon Hack Development Kit
1501
+ * http://captain-slow.dk/2014/03/09/3d-printing-timelapses/
1502
+ */
1503
+//#define CHDK_PIN    4   // Set and enable a pin for triggering CHDK to take a picture
1504
+#if PIN_EXISTS(CHDK)
1505
+  #define CHDK_DELAY 50   // (ms) How long the pin should remain HIGH
1506
+#endif
1507
+
1508
+/**
1502 1509
  * Spindle & Laser control
1503 1510
  *
1504 1511
  * Add the M3, M4, and M5 commands to turn the spindle/laser on and off, and

+ 10
- 6
Marlin/src/gcode/feature/camera/M240.cpp Ver fichero

@@ -22,20 +22,24 @@
22 22
 
23 23
 #include "../../../inc/MarlinConfig.h"
24 24
 
25
-#if defined(CHDK) || HAS_PHOTOGRAPH
25
+#if PIN_EXISTS(CHDK) || HAS_PHOTOGRAPH
26 26
 
27 27
 #include "../../gcode.h"
28 28
 
29
+bool chdk_active; // = false
30
+millis_t chdk_timeout;
31
+
29 32
 /**
30 33
  * M240: Trigger a camera by emulating a Canon RC-1
31 34
  *       See http://www.doc-diy.net/photo/rc-1_hacked/
32 35
  */
33 36
 void GcodeSuite::M240() {
34
-  #ifdef CHDK
35 37
 
36
-    OUT_WRITE(CHDK, HIGH);
37
-    chdkHigh = millis();
38
-    chdkActive = true;
38
+  #if PIN_EXISTS(CHDK)
39
+
40
+    OUT_WRITE(CHDK_PIN, HIGH);
41
+    chdk_timeout = millis() + CHDK_DELAY;
42
+    chdk_active = true;
39 43
 
40 44
   #elif HAS_PHOTOGRAPH
41 45
 
@@ -58,4 +62,4 @@ void GcodeSuite::M240() {
58 62
   #endif
59 63
 }
60 64
 
61
-#endif // CHDK || HAS_PHOTOGRAPH
65
+#endif // CHDK_PIN || HAS_PHOTOGRAPH

+ 1
- 1
Marlin/src/gcode/gcode.cpp Ver fichero

@@ -522,7 +522,7 @@ void GcodeSuite::process_parsed_command(
522 522
         case 304: M304(); break;                                  // M304: Set bed PID parameters
523 523
       #endif
524 524
 
525
-      #if defined(CHDK) || HAS_PHOTOGRAPH
525
+      #if PIN_EXISTS(CHDK) || HAS_PHOTOGRAPH
526 526
         case 240: M240(); break;                                  // M240: Trigger a camera by emulating a Canon RC-1 : http://www.doc-diy.net/photo/rc-1_hacked/
527 527
       #endif
528 528
 

+ 2
- 2
Marlin/src/gcode/gcode.h Ver fichero

@@ -171,7 +171,7 @@
171 171
  * M220 - Set Feedrate Percentage: "M220 S<percent>" (i.e., "FR" on the LCD)
172 172
  * M221 - Set Flow Percentage: "M221 S<percent>"
173 173
  * M226 - Wait until a pin is in a given state: "M226 P<pin> S<state>"
174
- * M240 - Trigger a camera to take a photograph. (Requires CHDK or PHOTOGRAPH_PIN)
174
+ * M240 - Trigger a camera to take a photograph. (Requires CHDK_PIN or PHOTOGRAPH_PIN)
175 175
  * M250 - Set LCD contrast: "M250 C<contrast>" (0-63). (Requires LCD support)
176 176
  * M260 - i2c Send Data (Requires EXPERIMENTAL_I2CBUS)
177 177
  * M261 - i2c Request Data (Requires EXPERIMENTAL_I2CBUS)
@@ -631,7 +631,7 @@ private:
631 631
   static void M221();
632 632
   static void M226();
633 633
 
634
-  #if defined(CHDK) || HAS_PHOTOGRAPH
634
+  #if PIN_EXISTS(CHDK) || HAS_PHOTOGRAPH
635 635
     static void M240();
636 636
   #endif
637 637
 

+ 2
- 0
Marlin/src/inc/SanityCheck.h Ver fichero

@@ -321,6 +321,8 @@
321 321
   #error "G0_FEEDRATE is now used to set the G0 feedrate. Please update your configuration."
322 322
 #elif defined(MBL_Z_STEP)
323 323
   #error "MBL_Z_STEP is now MESH_EDIT_Z_STEP. Please update your configuration."
324
+#elif defined(CHDK)
325
+  #error "CHDK is now CHDK_PIN. Please update your Configuration_adv.h."
324 326
 #endif
325 327
 
326 328
 #define BOARD_MKS_13     -47

Loading…
Cancelar
Guardar