Sfoglia il codice sorgente

Allow override of Z_ENDSTOP_SERVO_NR with BLTOUCH

Scott Lahteine 8 anni fa
parent
commit
c4dcfa254e
24 ha cambiato i file con 29 aggiunte e 3 eliminazioni
  1. 6
    2
      Marlin/Conditionals_post.h
  2. 1
    0
      Marlin/Configuration.h
  3. 1
    1
      Marlin/SanityCheck.h
  4. 1
    0
      Marlin/example_configurations/Cartesio/Configuration.h
  5. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  6. 1
    0
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  7. 1
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  8. 1
    0
      Marlin/example_configurations/Hephestos_2/Configuration.h
  9. 1
    0
      Marlin/example_configurations/K8200/Configuration.h
  10. 1
    0
      Marlin/example_configurations/K8400/Configuration.h
  11. 1
    0
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  12. 1
    0
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  13. 1
    0
      Marlin/example_configurations/RigidBot/Configuration.h
  14. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  15. 1
    0
      Marlin/example_configurations/TAZ4/Configuration.h
  16. 1
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  17. 1
    0
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  18. 1
    0
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  19. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  20. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  21. 1
    0
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  22. 1
    0
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  23. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  24. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h

+ 6
- 2
Marlin/Conditionals_post.h Vedi File

118
    * The BLTouch Probe emulates a servo probe
118
    * The BLTouch Probe emulates a servo probe
119
    */
119
    */
120
   #if ENABLED(BLTOUCH)
120
   #if ENABLED(BLTOUCH)
121
-    #undef Z_ENDSTOP_SERVO_NR
121
+    #ifndef Z_ENDSTOP_SERVO_NR
122
+      #define Z_ENDSTOP_SERVO_NR 0
123
+    #endif
124
+    #ifndef NUM_SERVOS
125
+      #define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
126
+    #endif
122
     #undef Z_SERVO_ANGLES
127
     #undef Z_SERVO_ANGLES
123
-    #define Z_ENDSTOP_SERVO_NR 0
124
     #define Z_SERVO_ANGLES {10,90} // For BLTouch 10=deploy, 90=retract
128
     #define Z_SERVO_ANGLES {10,90} // For BLTouch 10=deploy, 90=retract
125
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
129
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
126
     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
130
     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)

+ 1
- 0
Marlin/Configuration.h Vedi File

528
 //#define FIX_MOUNTED_PROBE
528
 //#define FIX_MOUNTED_PROBE
529
 
529
 
530
 // The BLTouch probe emulates a servo probe.
530
 // The BLTouch probe emulates a servo probe.
531
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
531
 //#define BLTOUCH
532
 //#define BLTOUCH
532
 
533
 
533
 // Z Servo Probe, such as an endstop switch on a rotating arm.
534
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 1
Marlin/SanityCheck.h Vedi File

400
   #if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
400
   #if (ENABLED(FIX_MOUNTED_PROBE) && (ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
401
        || (ENABLED(Z_PROBE_ALLEN_KEY) && (HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
401
        || (ENABLED(Z_PROBE_ALLEN_KEY) && (HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED))) \
402
        || (HAS_Z_SERVO_ENDSTOP && ENABLED(Z_PROBE_SLED))
402
        || (HAS_Z_SERVO_ENDSTOP && ENABLED(Z_PROBE_SLED))
403
-    #error "Please define only one type of probe: Z Servo, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
403
+    #error "Please define only one type of probe: Z Servo/BLTOUCH, Z_PROBE_ALLEN_KEY, Z_PROBE_SLED, or FIX_MOUNTED_PROBE."
404
   #endif
404
   #endif
405
 
405
 
406
   /**
406
   /**

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h Vedi File

511
 //#define FIX_MOUNTED_PROBE
511
 //#define FIX_MOUNTED_PROBE
512
 
512
 
513
 // The BLTouch probe emulates a servo probe.
513
 // The BLTouch probe emulates a servo probe.
514
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
514
 //#define BLTOUCH
515
 //#define BLTOUCH
515
 
516
 
516
 // Z Servo Probe, such as an endstop switch on a rotating arm.
517
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/Felix/Configuration.h Vedi File

494
 //#define FIX_MOUNTED_PROBE
494
 //#define FIX_MOUNTED_PROBE
495
 
495
 
496
 // The BLTouch probe emulates a servo probe.
496
 // The BLTouch probe emulates a servo probe.
497
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
497
 //#define BLTOUCH
498
 //#define BLTOUCH
498
 
499
 
499
 // Z Servo Probe, such as an endstop switch on a rotating arm.
500
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/Felix/DUAL/Configuration.h Vedi File

492
 //#define FIX_MOUNTED_PROBE
492
 //#define FIX_MOUNTED_PROBE
493
 
493
 
494
 // The BLTouch probe emulates a servo probe.
494
 // The BLTouch probe emulates a servo probe.
495
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
495
 //#define BLTOUCH
496
 //#define BLTOUCH
496
 
497
 
497
 // Z Servo Probe, such as an endstop switch on a rotating arm.
498
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/Hephestos/Configuration.h Vedi File

503
 //#define FIX_MOUNTED_PROBE
503
 //#define FIX_MOUNTED_PROBE
504
 
504
 
505
 // The BLTouch probe emulates a servo probe.
505
 // The BLTouch probe emulates a servo probe.
506
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
506
 //#define BLTOUCH
507
 //#define BLTOUCH
507
 
508
 
508
 // Z Servo Probe, such as an endstop switch on a rotating arm.
509
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/Hephestos_2/Configuration.h Vedi File

505
 #define FIX_MOUNTED_PROBE
505
 #define FIX_MOUNTED_PROBE
506
 
506
 
507
 // The BLTouch probe emulates a servo probe.
507
 // The BLTouch probe emulates a servo probe.
508
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
508
 //#define BLTOUCH
509
 //#define BLTOUCH
509
 
510
 
510
 // Z Servo Probe, such as an endstop switch on a rotating arm.
511
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/K8200/Configuration.h Vedi File

528
 //#define FIX_MOUNTED_PROBE
528
 //#define FIX_MOUNTED_PROBE
529
 
529
 
530
 // The BLTouch probe emulates a servo probe.
530
 // The BLTouch probe emulates a servo probe.
531
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
531
 //#define BLTOUCH
532
 //#define BLTOUCH
532
 
533
 
533
 // Z Servo Probe, such as an endstop switch on a rotating arm.
534
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/K8400/Configuration.h Vedi File

511
 //#define FIX_MOUNTED_PROBE
511
 //#define FIX_MOUNTED_PROBE
512
 
512
 
513
 // The BLTouch probe emulates a servo probe.
513
 // The BLTouch probe emulates a servo probe.
514
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
514
 //#define BLTOUCH
515
 //#define BLTOUCH
515
 
516
 
516
 // Z Servo Probe, such as an endstop switch on a rotating arm.
517
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/K8400/Dual-head/Configuration.h Vedi File

511
 //#define FIX_MOUNTED_PROBE
511
 //#define FIX_MOUNTED_PROBE
512
 
512
 
513
 // The BLTouch probe emulates a servo probe.
513
 // The BLTouch probe emulates a servo probe.
514
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
514
 //#define BLTOUCH
515
 //#define BLTOUCH
515
 
516
 
516
 // Z Servo Probe, such as an endstop switch on a rotating arm.
517
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Vedi File

511
 //#define FIX_MOUNTED_PROBE
511
 //#define FIX_MOUNTED_PROBE
512
 
512
 
513
 // The BLTouch probe emulates a servo probe.
513
 // The BLTouch probe emulates a servo probe.
514
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
514
 //#define BLTOUCH
515
 //#define BLTOUCH
515
 
516
 
516
 // Z Servo Probe, such as an endstop switch on a rotating arm.
517
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/RigidBot/Configuration.h Vedi File

509
 //#define FIX_MOUNTED_PROBE
509
 //#define FIX_MOUNTED_PROBE
510
 
510
 
511
 // The BLTouch probe emulates a servo probe.
511
 // The BLTouch probe emulates a servo probe.
512
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
512
 //#define BLTOUCH
513
 //#define BLTOUCH
513
 
514
 
514
 // Z Servo Probe, such as an endstop switch on a rotating arm.
515
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/SCARA/Configuration.h Vedi File

521
 //#define FIX_MOUNTED_PROBE
521
 //#define FIX_MOUNTED_PROBE
522
 
522
 
523
 // The BLTouch probe emulates a servo probe.
523
 // The BLTouch probe emulates a servo probe.
524
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
524
 //#define BLTOUCH
525
 //#define BLTOUCH
525
 
526
 
526
 // Z Servo Probe, such as an endstop switch on a rotating arm.
527
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/TAZ4/Configuration.h Vedi File

532
 //#define FIX_MOUNTED_PROBE
532
 //#define FIX_MOUNTED_PROBE
533
 
533
 
534
 // The BLTouch probe emulates a servo probe.
534
 // The BLTouch probe emulates a servo probe.
535
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
535
 //#define BLTOUCH
536
 //#define BLTOUCH
536
 
537
 
537
 // Z Servo Probe, such as an endstop switch on a rotating arm.
538
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/WITBOX/Configuration.h Vedi File

503
 //#define FIX_MOUNTED_PROBE
503
 //#define FIX_MOUNTED_PROBE
504
 
504
 
505
 // The BLTouch probe emulates a servo probe.
505
 // The BLTouch probe emulates a servo probe.
506
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
506
 //#define BLTOUCH
507
 //#define BLTOUCH
507
 
508
 
508
 // Z Servo Probe, such as an endstop switch on a rotating arm.
509
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h Vedi File

511
 //#define FIX_MOUNTED_PROBE
511
 //#define FIX_MOUNTED_PROBE
512
 
512
 
513
 // The BLTouch probe emulates a servo probe.
513
 // The BLTouch probe emulates a servo probe.
514
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
514
 //#define BLTOUCH
515
 //#define BLTOUCH
515
 
516
 
516
 // Z Servo Probe, such as an endstop switch on a rotating arm.
517
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/delta/biv2.5/Configuration.h Vedi File

554
 //#define FIX_MOUNTED_PROBE
554
 //#define FIX_MOUNTED_PROBE
555
 
555
 
556
 // The BLTouch probe emulates a servo probe.
556
 // The BLTouch probe emulates a servo probe.
557
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
557
 //#define BLTOUCH
558
 //#define BLTOUCH
558
 
559
 
559
 // Z Servo Probe, such as an endstop switch on a rotating arm.
560
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/delta/generic/Configuration.h Vedi File

554
 //#define FIX_MOUNTED_PROBE
554
 //#define FIX_MOUNTED_PROBE
555
 
555
 
556
 // The BLTouch probe emulates a servo probe.
556
 // The BLTouch probe emulates a servo probe.
557
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
557
 //#define BLTOUCH
558
 //#define BLTOUCH
558
 
559
 
559
 // Z Servo Probe, such as an endstop switch on a rotating arm.
560
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h Vedi File

554
 //#define FIX_MOUNTED_PROBE
554
 //#define FIX_MOUNTED_PROBE
555
 
555
 
556
 // The BLTouch probe emulates a servo probe.
556
 // The BLTouch probe emulates a servo probe.
557
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
557
 //#define BLTOUCH
558
 //#define BLTOUCH
558
 
559
 
559
 // Z Servo Probe, such as an endstop switch on a rotating arm.
560
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/delta/kossel_pro/Configuration.h Vedi File

550
 //#define FIX_MOUNTED_PROBE
550
 //#define FIX_MOUNTED_PROBE
551
 
551
 
552
 // The BLTouch probe emulates a servo probe.
552
 // The BLTouch probe emulates a servo probe.
553
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
553
 //#define BLTOUCH
554
 //#define BLTOUCH
554
 
555
 
555
 // Z Servo Probe, such as an endstop switch on a rotating arm.
556
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/delta/kossel_xl/Configuration.h Vedi File

560
 #define FIX_MOUNTED_PROBE
560
 #define FIX_MOUNTED_PROBE
561
 
561
 
562
 // The BLTouch probe emulates a servo probe.
562
 // The BLTouch probe emulates a servo probe.
563
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
563
 //#define BLTOUCH
564
 //#define BLTOUCH
564
 
565
 
565
 // Z Servo Probe, such as an endstop switch on a rotating arm.
566
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/makibox/Configuration.h Vedi File

514
 //#define FIX_MOUNTED_PROBE
514
 //#define FIX_MOUNTED_PROBE
515
 
515
 
516
 // The BLTouch probe emulates a servo probe.
516
 // The BLTouch probe emulates a servo probe.
517
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
517
 //#define BLTOUCH
518
 //#define BLTOUCH
518
 
519
 
519
 // Z Servo Probe, such as an endstop switch on a rotating arm.
520
 // Z Servo Probe, such as an endstop switch on a rotating arm.

+ 1
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Vedi File

507
 //#define FIX_MOUNTED_PROBE
507
 //#define FIX_MOUNTED_PROBE
508
 
508
 
509
 // The BLTouch probe emulates a servo probe.
509
 // The BLTouch probe emulates a servo probe.
510
+// The default connector is SERVO 0. Set Z_ENDSTOP_SERVO_NR below to override.
510
 //#define BLTOUCH
511
 //#define BLTOUCH
511
 
512
 
512
 // Z Servo Probe, such as an endstop switch on a rotating arm.
513
 // Z Servo Probe, such as an endstop switch on a rotating arm.

Loading…
Annulla
Salva