Browse Source

Merge pull request #1476 from Natealus/Development

Compiling errors with 4 Extruders defined and Viki 2 Implementation
Scott Lahteine 9 years ago
parent
commit
7866fa161f

+ 28
- 2
Marlin/Configuration.h View File

@@ -122,6 +122,7 @@ Here are some standard links for getting your machine calibrated:
122 122
 #define TEMP_SENSOR_0 -1
123 123
 #define TEMP_SENSOR_1 -1
124 124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125 126
 #define TEMP_SENSOR_BED 0
126 127
 
127 128
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -139,6 +140,7 @@ Here are some standard links for getting your machine calibrated:
139 140
 #define HEATER_0_MINTEMP 5
140 141
 #define HEATER_1_MINTEMP 5
141 142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142 144
 #define BED_MINTEMP 5
143 145
 
144 146
 // When temperature exceeds max temp, your heater will be switched off.
@@ -147,6 +149,7 @@ Here are some standard links for getting your machine calibrated:
147 149
 #define HEATER_0_MAXTEMP 275
148 150
 #define HEATER_1_MAXTEMP 275
149 151
 #define HEATER_2_MAXTEMP 275
152
+#define HEATER_3_MAXTEMP 275
150 153
 #define BED_MAXTEMP 150
151 154
 
152 155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -341,12 +344,13 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
341 344
 #define DISABLE_E false // For all extruders
342 345
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
343 346
 
344
-#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
347
+#define INVERT_X_DIR true     // for Mendel set to false, for Orca set to true
345 348
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
346 349
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
347 350
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
348
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
351
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
349 352
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
353
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
350 354
 
351 355
 // ENDSTOP SETTINGS:
352 356
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -586,6 +590,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
586 590
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
587 591
 //#define MAKRPANEL
588 592
 
593
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
594
+// http://panucatt.com
595
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
596
+//#define VIKI2
597
+//#define miniVIKI
598
+
589 599
 // The RepRapDiscount Smart Controller (white PCB)
590 600
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
591 601
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -619,6 +629,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
619 629
  #define DEFAULT_LCD_CONTRAST 17
620 630
 #endif
621 631
 
632
+#if defined(miniVIKI) || defined(VIKI2)
633
+ #define ULTRA_LCD  //general LCD support, also 16x2
634
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
635
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
636
+ 
637
+  #ifdef miniVIKI
638
+   #define DEFAULT_LCD_CONTRAST 95
639
+  #else
640
+   #define DEFAULT_LCD_CONTRAST 40
641
+  #endif
642
+  
643
+ #define ENCODER_PULSES_PER_STEP 4
644
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
645
+#endif
646
+
647
+
622 648
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
623 649
  #define DOGLCD
624 650
  #define U8GLIB_ST7920

+ 9
- 0
Marlin/Marlin_main.cpp View File

@@ -659,6 +659,15 @@ void setup()
659 659
   digitalWrite(SERVO0_PIN, LOW); // turn it off
660 660
 #endif // Z_PROBE_SLED
661 661
   setup_homepin();
662
+  
663
+#ifdef STAT_LED_RED
664
+  pinMode(STAT_LED_RED, OUTPUT);
665
+  digitalWrite(STAT_LED_RED, LOW); // turn it off
666
+#endif
667
+#ifdef STAT_LED_BLUE
668
+  pinMode(STAT_LED_BLUE, OUTPUT);
669
+  digitalWrite(STAT_LED_BLUE, LOW); // turn it off
670
+#endif  
662 671
 }
663 672
 
664 673
 

+ 3
- 0
Marlin/dogm_lcd_implementation.h View File

@@ -92,6 +92,9 @@ U8GLIB_ST7920_128X64_RRD u8g(0);
92 92
 #elif defined(MAKRPANEL)
93 93
 // The MaKrPanel display, ST7565 controller as well
94 94
 U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
95
+#elif defined(VIKI2) || defined(miniVIKI)
96
+// Mini Viki and Viki 2.0 LCD, ST7565 controller as well
97
+U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
95 98
 #else
96 99
 // for regular DOGM128 display with HW-SPI
97 100
 U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0

+ 28
- 2
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -122,6 +122,7 @@ Here are some standard links for getting your machine calibrated:
122 122
 #define TEMP_SENSOR_0 1
123 123
 #define TEMP_SENSOR_1 0
124 124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125 126
 #define TEMP_SENSOR_BED 0
126 127
 
127 128
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -139,6 +140,7 @@ Here are some standard links for getting your machine calibrated:
139 140
 #define HEATER_0_MINTEMP 5
140 141
 #define HEATER_1_MINTEMP 5
141 142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142 144
 #define BED_MINTEMP 5
143 145
 
144 146
 // When temperature exceeds max temp, your heater will be switched off.
@@ -147,6 +149,7 @@ Here are some standard links for getting your machine calibrated:
147 149
 #define HEATER_0_MAXTEMP 260
148 150
 #define HEATER_1_MAXTEMP 260
149 151
 #define HEATER_2_MAXTEMP 260
152
+#define HEATER_3_MAXTEMP 260
150 153
 #define BED_MAXTEMP 150
151 154
 
152 155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -351,8 +354,9 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
351 354
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
352 355
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
353 356
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
354
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
357
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
355 358
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
359
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
356 360
 
357 361
 // ENDSTOP SETTINGS:
358 362
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -587,6 +591,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
587 591
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
588 592
 //#define MAKRPANEL
589 593
 
594
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
595
+// http://panucatt.com
596
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
597
+//#define VIKI2
598
+//#define miniVIKI
599
+
590 600
 // The RepRapDiscount Smart Controller (white PCB)
591 601
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
592 602
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -620,6 +630,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
620 630
  #define DEFAULT_LCD_CONTRAST 17
621 631
 #endif
622 632
 
633
+#if defined(miniVIKI) || defined(VIKI2)
634
+ #define ULTRA_LCD  //general LCD support, also 16x2
635
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
636
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
637
+ 
638
+  #ifdef miniVIKI
639
+   #define DEFAULT_LCD_CONTRAST 95
640
+  #else
641
+   #define DEFAULT_LCD_CONTRAST 40
642
+  #endif
643
+  
644
+ #define ENCODER_PULSES_PER_STEP 4
645
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
646
+#endif
647
+
648
+
623 649
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
624 650
  #define DOGLCD
625 651
  #define U8GLIB_ST7920

+ 29
- 3
Marlin/example_configurations/K8200/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -124,6 +124,7 @@ Here are some standard links for getting your machine calibrated:
124 124
 #define TEMP_SENSOR_0 5
125 125
 #define TEMP_SENSOR_1 0
126 126
 #define TEMP_SENSOR_2 0
127
+#define TEMP_SENSOR_3 0
127 128
 #define TEMP_SENSOR_BED 5
128 129
 
129 130
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -141,6 +142,7 @@ Here are some standard links for getting your machine calibrated:
141 142
 #define HEATER_0_MINTEMP 5
142 143
 #define HEATER_1_MINTEMP 5
143 144
 #define HEATER_2_MINTEMP 5
145
+#define HEATER_3_MINTEMP 5
144 146
 #define BED_MINTEMP 5
145 147
 
146 148
 // When temperature exceeds max temp, your heater will be switched off.
@@ -149,6 +151,7 @@ Here are some standard links for getting your machine calibrated:
149 151
 #define HEATER_0_MAXTEMP 275
150 152
 #define HEATER_1_MAXTEMP 275
151 153
 #define HEATER_2_MAXTEMP 275
154
+#define HEATER_3_MAXTEMP 275
152 155
 #define BED_MAXTEMP 150
153 156
 
154 157
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -357,10 +360,11 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
357 360
 
358 361
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
359 362
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
360
-#define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
363
+#define INVERT_Z_DIR false    // for Mendel set to false, for Orca set to true
361 364
 #define INVERT_E0_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
362
-#define INVERT_E1_DIR true    // for direct drive extruder v9 set to true, for geared extruder set to false
365
+#define INVERT_E1_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
363 366
 #define INVERT_E2_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
367
+#define INVERT_E3_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
364 368
 
365 369
 // ENDSTOP SETTINGS:
366 370
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -597,6 +601,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
597 601
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
598 602
 //#define MAKRPANEL
599 603
 
604
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
605
+// http://panucatt.com
606
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
607
+//#define VIKI2
608
+//#define miniVIKI
609
+
600 610
 // The RepRapDiscount Smart Controller (white PCB)
601 611
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
602 612
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -630,6 +640,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
630 640
  #define DEFAULT_LCD_CONTRAST 17
631 641
 #endif
632 642
 
643
+#if defined(miniVIKI) || defined(VIKI2)
644
+ #define ULTRA_LCD  //general LCD support, also 16x2
645
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
646
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
647
+ 
648
+  #ifdef miniVIKI
649
+   #define DEFAULT_LCD_CONTRAST 95
650
+  #else
651
+   #define DEFAULT_LCD_CONTRAST 40
652
+  #endif
653
+  
654
+ #define ENCODER_PULSES_PER_STEP 4
655
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
656
+#endif
657
+
658
+
633 659
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
634 660
  #define DOGLCD
635 661
  #define U8GLIB_ST7920

+ 28
- 2
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -142,6 +142,7 @@ Here are some standard links for getting your machine calibrated:
142 142
 #define TEMP_SENSOR_0 1
143 143
 #define TEMP_SENSOR_1 0
144 144
 #define TEMP_SENSOR_2 0
145
+#define TEMP_SENSOR_3 0
145 146
 #define TEMP_SENSOR_BED 1
146 147
 
147 148
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -159,6 +160,7 @@ Here are some standard links for getting your machine calibrated:
159 160
 #define HEATER_0_MINTEMP 5
160 161
 #define HEATER_1_MINTEMP 5
161 162
 #define HEATER_2_MINTEMP 5
163
+#define HEATER_3_MINTEMP 5
162 164
 #define BED_MINTEMP 5
163 165
 
164 166
 // When temperature exceeds max temp, your heater will be switched off.
@@ -167,6 +169,7 @@ Here are some standard links for getting your machine calibrated:
167 169
 #define HEATER_0_MAXTEMP 275
168 170
 #define HEATER_1_MAXTEMP 275
169 171
 #define HEATER_2_MAXTEMP 275
172
+#define HEATER_3_MAXTEMP 275
170 173
 #define BED_MAXTEMP 150
171 174
 
172 175
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -380,8 +383,9 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
380 383
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
381 384
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
382 385
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
383
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
386
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
384 387
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
388
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
385 389
 
386 390
 // ENDSTOP SETTINGS:
387 391
 // Sets direction of endstop	s when homing; 1=MAX, -1=MIN
@@ -590,6 +594,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
590 594
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
591 595
 //#define MAKRPANEL
592 596
 
597
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
598
+// http://panucatt.com
599
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
600
+//#define VIKI2
601
+//#define miniVIKI
602
+
593 603
 // The RepRapDiscount Smart Controller (white PCB)
594 604
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
595 605
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -623,6 +633,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
623 633
  #define DEFAULT_LCD_CONTRAST 17
624 634
 #endif
625 635
 
636
+#if defined(miniVIKI) || defined(VIKI2)
637
+ #define ULTRA_LCD  //general LCD support, also 16x2
638
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
639
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
640
+ 
641
+  #ifdef miniVIKI
642
+   #define DEFAULT_LCD_CONTRAST 95
643
+  #else
644
+   #define DEFAULT_LCD_CONTRAST 40
645
+  #endif
646
+  
647
+ #define ENCODER_PULSES_PER_STEP 4
648
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
649
+#endif
650
+
651
+
626 652
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
627 653
  #define DOGLCD
628 654
  #define U8GLIB_ST7920

+ 12
- 0
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -78,6 +78,7 @@
78 78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79 79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80 80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81 82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82 83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83 84
 
@@ -478,6 +479,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
478 479
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
479 480
   #define HEATER_2_USES_THERMISTOR
480 481
 #endif
482
+#if TEMP_SENSOR_3 > 0
483
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
484
+  #define HEATER_3_USES_THERMISTOR
485
+#endif
481 486
 #if TEMP_SENSOR_BED > 0
482 487
   #define THERMISTORBED TEMP_SENSOR_BED
483 488
   #define BED_USES_THERMISTOR
@@ -491,6 +496,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
491 496
 #if TEMP_SENSOR_2 == -1
492 497
   #define HEATER_2_USES_AD595
493 498
 #endif
499
+#if TEMP_SENSOR_3 == -1
500
+  #define HEATER_3_USES_AD595
501
+#endif
494 502
 #if TEMP_SENSOR_BED == -1
495 503
   #define BED_USES_AD595
496 504
 #endif
@@ -509,6 +517,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
509 517
   #undef HEATER_2_MINTEMP
510 518
   #undef HEATER_2_MAXTEMP
511 519
 #endif
520
+#if TEMP_SENSOR_3 == 0
521
+  #undef HEATER_3_MINTEMP
522
+  #undef HEATER_3_MAXTEMP
523
+#endif
512 524
 #if TEMP_SENSOR_BED == 0
513 525
   #undef BED_MINTEMP
514 526
   #undef BED_MAXTEMP

+ 29
- 3
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -125,6 +125,7 @@ Here are some standard links for getting your machine calibrated:
125 125
 #define TEMP_SENSOR_0 1
126 126
 #define TEMP_SENSOR_1 0
127 127
 #define TEMP_SENSOR_2 0
128
+#define TEMP_SENSOR_3 0
128 129
 #define TEMP_SENSOR_BED 0
129 130
 
130 131
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -142,6 +143,7 @@ Here are some standard links for getting your machine calibrated:
142 143
 #define HEATER_0_MINTEMP 5
143 144
 #define HEATER_1_MINTEMP 5
144 145
 #define HEATER_2_MINTEMP 5
146
+#define HEATER_3_MINTEMP 5
145 147
 #define BED_MINTEMP 5
146 148
 
147 149
 // When temperature exceeds max temp, your heater will be switched off.
@@ -150,6 +152,7 @@ Here are some standard links for getting your machine calibrated:
150 152
 #define HEATER_0_MAXTEMP 260
151 153
 #define HEATER_1_MAXTEMP 260
152 154
 #define HEATER_2_MAXTEMP 260
155
+#define HEATER_3_MAXTEMP 260
153 156
 #define BED_MAXTEMP 150
154 157
 
155 158
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -351,12 +354,13 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
351 354
 #define DISABLE_E false // For all extruders
352 355
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
353 356
 
354
-#define INVERT_X_DIR true    // for Mendel set to false, for Orca set to true
357
+#define INVERT_X_DIR true     // for Mendel set to false, for Orca set to true
355 358
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
356 359
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
357 360
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
358
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
361
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
359 362
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
363
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
360 364
 
361 365
 // ENDSTOP SETTINGS:
362 366
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -591,6 +595,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
591 595
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
592 596
 //#define MAKRPANEL
593 597
 
598
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
599
+// http://panucatt.com
600
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
601
+//#define VIKI2
602
+//#define miniVIKI
603
+
594 604
 // The RepRapDiscount Smart Controller (white PCB)
595 605
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
596 606
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -624,6 +634,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
624 634
  #define DEFAULT_LCD_CONTRAST 17
625 635
 #endif
626 636
 
637
+#if defined(miniVIKI) || defined(VIKI2)
638
+ #define ULTRA_LCD  //general LCD support, also 16x2
639
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
640
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
641
+ 
642
+  #ifdef miniVIKI
643
+   #define DEFAULT_LCD_CONTRAST 95
644
+  #else
645
+   #define DEFAULT_LCD_CONTRAST 40
646
+  #endif
647
+  
648
+ #define ENCODER_PULSES_PER_STEP 4
649
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
650
+#endif
651
+
652
+
627 653
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
628 654
  #define DOGLCD
629 655
  #define U8GLIB_ST7920

+ 28
- 2
Marlin/example_configurations/delta/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -147,6 +147,7 @@ Here are some standard links for getting your machine calibrated:
147 147
 #define TEMP_SENSOR_0 -1
148 148
 #define TEMP_SENSOR_1 -1
149 149
 #define TEMP_SENSOR_2 0
150
+#define TEMP_SENSOR_3 0
150 151
 #define TEMP_SENSOR_BED 0
151 152
 
152 153
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -164,6 +165,7 @@ Here are some standard links for getting your machine calibrated:
164 165
 #define HEATER_0_MINTEMP 5
165 166
 #define HEATER_1_MINTEMP 5
166 167
 #define HEATER_2_MINTEMP 5
168
+#define HEATER_3_MINTEMP 5
167 169
 #define BED_MINTEMP 5
168 170
 
169 171
 // When temperature exceeds max temp, your heater will be switched off.
@@ -172,6 +174,7 @@ Here are some standard links for getting your machine calibrated:
172 174
 #define HEATER_0_MAXTEMP 275
173 175
 #define HEATER_1_MAXTEMP 275
174 176
 #define HEATER_2_MAXTEMP 275
177
+#define HEATER_3_MAXTEMP 275
175 178
 #define BED_MAXTEMP 150
176 179
 
177 180
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -368,8 +371,9 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
368 371
 #define INVERT_Z_DIR false
369 372
 
370 373
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
371
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
374
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
372 375
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
376
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
373 377
 
374 378
 // ENDSTOP SETTINGS:
375 379
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -495,6 +499,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
495 499
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
496 500
 //#define MAKRPANEL
497 501
 
502
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
503
+// http://panucatt.com
504
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
505
+//#define VIKI2
506
+//#define miniVIKI
507
+
498 508
 // The RepRapDiscount Smart Controller (white PCB)
499 509
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
500 510
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -535,6 +545,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
535 545
  #define DEFAULT_LCD_CONTRAST 17
536 546
 #endif
537 547
 
548
+#if defined(miniVIKI) || defined(VIKI2)
549
+ #define ULTRA_LCD  //general LCD support, also 16x2
550
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
551
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
552
+ 
553
+  #ifdef miniVIKI
554
+   #define DEFAULT_LCD_CONTRAST 95
555
+  #else
556
+   #define DEFAULT_LCD_CONTRAST 40
557
+  #endif
558
+  
559
+ #define ENCODER_PULSES_PER_STEP 4
560
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
561
+#endif
562
+
563
+
538 564
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
539 565
  #define DOGLCD
540 566
  #define U8GLIB_ST7920

+ 12
- 0
Marlin/example_configurations/delta/Configuration_adv.h View File

@@ -78,6 +78,7 @@
78 78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79 79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80 80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81 82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82 83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83 84
 
@@ -472,6 +473,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
472 473
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473 474
   #define HEATER_2_USES_THERMISTOR
474 475
 #endif
476
+#if TEMP_SENSOR_3 > 0
477
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
478
+  #define HEATER_3_USES_THERMISTOR
479
+#endif
475 480
 #if TEMP_SENSOR_BED > 0
476 481
   #define THERMISTORBED TEMP_SENSOR_BED
477 482
   #define BED_USES_THERMISTOR
@@ -485,6 +490,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
485 490
 #if TEMP_SENSOR_2 == -1
486 491
   #define HEATER_2_USES_AD595
487 492
 #endif
493
+#if TEMP_SENSOR_3 == -1
494
+  #define HEATER_3_USES_AD595
495
+#endif
488 496
 #if TEMP_SENSOR_BED == -1
489 497
   #define BED_USES_AD595
490 498
 #endif
@@ -503,6 +511,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
503 511
   #undef HEATER_2_MINTEMP
504 512
   #undef HEATER_2_MAXTEMP
505 513
 #endif
514
+#if TEMP_SENSOR_3 == 0
515
+  #undef HEATER_3_MINTEMP
516
+  #undef HEATER_3_MAXTEMP
517
+#endif
506 518
 #if TEMP_SENSOR_BED == 0
507 519
   #undef BED_MINTEMP
508 520
   #undef BED_MAXTEMP

+ 29
- 3
Marlin/example_configurations/makibox/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -127,6 +127,7 @@ Here are some standard links for getting your machine calibrated:
127 127
 #define TEMP_SENSOR_0 1
128 128
 #define TEMP_SENSOR_1 0
129 129
 #define TEMP_SENSOR_2 0
130
+#define TEMP_SENSOR_3 0
130 131
 #define TEMP_SENSOR_BED 12
131 132
 
132 133
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -144,6 +145,7 @@ Here are some standard links for getting your machine calibrated:
144 145
 #define HEATER_0_MINTEMP 5
145 146
 #define HEATER_1_MINTEMP 5
146 147
 #define HEATER_2_MINTEMP 5
148
+#define HEATER_3_MINTEMP 5
147 149
 #define BED_MINTEMP 5
148 150
 
149 151
 // When temperature exceeds max temp, your heater will be switched off.
@@ -152,6 +154,7 @@ Here are some standard links for getting your machine calibrated:
152 154
 #define HEATER_0_MAXTEMP 275
153 155
 #define HEATER_1_MAXTEMP 275
154 156
 #define HEATER_2_MAXTEMP 275
157
+#define HEATER_3_MAXTEMP 275
155 158
 #define BED_MAXTEMP 150
156 159
 
157 160
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
@@ -352,9 +355,10 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
352 355
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
353 356
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
354 357
 #define INVERT_Z_DIR false    // for Mendel set to false, for Orca set to true
355
-#define INVERT_E0_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
356
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
358
+#define INVERT_E0_DIR true    // for direct drive extruder v9 set to true, for geared extruder set to false
359
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
357 360
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
361
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
358 362
 
359 363
 // ENDSTOP SETTINGS:
360 364
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -565,6 +569,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
565 569
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
566 570
 //#define MAKRPANEL
567 571
 
572
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
573
+// http://panucatt.com
574
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
575
+//#define VIKI2
576
+//#define miniVIKI
577
+
568 578
 // The RepRapDiscount Smart Controller (white PCB)
569 579
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
570 580
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -598,6 +608,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
598 608
  #define DEFAULT_LCD_CONTRAST 17
599 609
 #endif
600 610
 
611
+#if defined(miniVIKI) || defined(VIKI2)
612
+ #define ULTRA_LCD  //general LCD support, also 16x2
613
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
614
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
615
+ 
616
+  #ifdef miniVIKI
617
+   #define DEFAULT_LCD_CONTRAST 95
618
+  #else
619
+   #define DEFAULT_LCD_CONTRAST 40
620
+  #endif
621
+  
622
+ #define ENCODER_PULSES_PER_STEP 4
623
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
624
+#endif
625
+
626
+
601 627
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
602 628
  #define DOGLCD
603 629
  #define U8GLIB_ST7920

+ 12
- 0
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -78,6 +78,7 @@
78 78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79 79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80 80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81 82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82 83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83 84
 
@@ -469,6 +470,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
469 470
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
470 471
   #define HEATER_2_USES_THERMISTOR
471 472
 #endif
473
+#if TEMP_SENSOR_3 > 0
474
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
475
+  #define HEATER_3_USES_THERMISTOR
476
+#endif
472 477
 #if TEMP_SENSOR_BED > 0
473 478
   #define THERMISTORBED TEMP_SENSOR_BED
474 479
   #define BED_USES_THERMISTOR
@@ -482,6 +487,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
482 487
 #if TEMP_SENSOR_2 == -1
483 488
   #define HEATER_2_USES_AD595
484 489
 #endif
490
+#if TEMP_SENSOR_3 == -1
491
+  #define HEATER_3_USES_AD595
492
+#endif
485 493
 #if TEMP_SENSOR_BED == -1
486 494
   #define BED_USES_AD595
487 495
 #endif
@@ -500,6 +508,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
500 508
   #undef HEATER_2_MINTEMP
501 509
   #undef HEATER_2_MAXTEMP
502 510
 #endif
511
+#if TEMP_SENSOR_3 == 0
512
+  #undef HEATER_3_MINTEMP
513
+  #undef HEATER_3_MAXTEMP
514
+#endif
503 515
 #if TEMP_SENSOR_BED == 0
504 516
   #undef BED_MINTEMP
505 517
   #undef BED_MAXTEMP

+ 30
- 4
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -1,4 +1,4 @@
1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2 2
 #define CONFIGURATION_H
3 3
 
4 4
 #include "boards.h"
@@ -126,6 +126,7 @@ Here are some standard links for getting your machine calibrated:
126 126
 #define TEMP_SENSOR_0 5
127 127
 #define TEMP_SENSOR_1 0
128 128
 #define TEMP_SENSOR_2 0
129
+#define TEMP_SENSOR_3 0
129 130
 #define TEMP_SENSOR_BED 5
130 131
 
131 132
 // This makes temp sensor 1 a redundant sensor for sensor 0. If the temperatures difference between these sensors is to high the print will be aborted.
@@ -143,6 +144,7 @@ Here are some standard links for getting your machine calibrated:
143 144
 #define HEATER_0_MINTEMP 5
144 145
 #define HEATER_1_MINTEMP 5
145 146
 #define HEATER_2_MINTEMP 5
147
+#define HEATER_3_MINTEMP 5
146 148
 #define BED_MINTEMP 5
147 149
 
148 150
 // When temperature exceeds max temp, your heater will be switched off.
@@ -151,6 +153,7 @@ Here are some standard links for getting your machine calibrated:
151 153
 #define HEATER_0_MAXTEMP 275
152 154
 #define HEATER_1_MAXTEMP 275
153 155
 #define HEATER_2_MAXTEMP 275
156
+#define HEATER_3_MAXTEMP 275
154 157
 #define BED_MAXTEMP 150
155 158
 
156 159
 #define CONFIG_STEPPERS_TOSHIBA	1
@@ -353,11 +356,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
353 356
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
354 357
 
355 358
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
356
-#define INVERT_Y_DIR true    // for Mendel set to true, for Orca set to false
357
-#define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
359
+#define INVERT_Y_DIR true     // for Mendel set to true, for Orca set to false
360
+#define INVERT_Z_DIR false    // for Mendel set to false, for Orca set to true
358 361
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
359
-#define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
362
+#define INVERT_E1_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
360 363
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
364
+#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
361 365
 
362 366
 // ENDSTOP SETTINGS:
363 367
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
@@ -578,6 +582,12 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
578 582
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
579 583
 //#define MAKRPANEL
580 584
 
585
+// The Panucatt Devices Viki 2.0 and mini Viki with Graphic LCD
586
+// http://panucatt.com
587
+// ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
588
+//#define VIKI2
589
+//#define miniVIKI
590
+
581 591
 // The RepRapDiscount Smart Controller (white PCB)
582 592
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
583 593
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
@@ -611,6 +621,22 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
611 621
  #define DEFAULT_LCD_CONTRAST 17
612 622
 #endif
613 623
 
624
+#if defined(miniVIKI) || defined(VIKI2)
625
+ #define ULTRA_LCD  //general LCD support, also 16x2
626
+ #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
627
+ #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
628
+ 
629
+  #ifdef miniVIKI
630
+   #define DEFAULT_LCD_CONTRAST 95
631
+  #else
632
+   #define DEFAULT_LCD_CONTRAST 40
633
+  #endif
634
+  
635
+ #define ENCODER_PULSES_PER_STEP 4
636
+ #define ENCODER_STEPS_PER_MENU_ITEM 1
637
+#endif
638
+
639
+
614 640
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
615 641
  #define DOGLCD
616 642
  #define U8GLIB_ST7920

+ 12
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -78,6 +78,7 @@
78 78
 #define EXTRUDER_0_AUTO_FAN_PIN   -1
79 79
 #define EXTRUDER_1_AUTO_FAN_PIN   -1
80 80
 #define EXTRUDER_2_AUTO_FAN_PIN   -1
81
+#define EXTRUDER_3_AUTO_FAN_PIN   -1
81 82
 #define EXTRUDER_AUTO_FAN_TEMPERATURE 50
82 83
 #define EXTRUDER_AUTO_FAN_SPEED   255  // == full speed
83 84
 
@@ -472,6 +473,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
472 473
   #define THERMISTORHEATER_2 TEMP_SENSOR_2
473 474
   #define HEATER_2_USES_THERMISTOR
474 475
 #endif
476
+#if TEMP_SENSOR_3 > 0
477
+  #define THERMISTORHEATER_3 TEMP_SENSOR_3
478
+  #define HEATER_3_USES_THERMISTOR
479
+#endif
475 480
 #if TEMP_SENSOR_BED > 0
476 481
   #define THERMISTORBED TEMP_SENSOR_BED
477 482
   #define BED_USES_THERMISTOR
@@ -485,6 +490,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
485 490
 #if TEMP_SENSOR_2 == -1
486 491
   #define HEATER_2_USES_AD595
487 492
 #endif
493
+#if TEMP_SENSOR_3 == -1
494
+  #define HEATER_3_USES_AD595
495
+#endif
488 496
 #if TEMP_SENSOR_BED == -1
489 497
   #define BED_USES_AD595
490 498
 #endif
@@ -503,6 +511,10 @@ const unsigned int dropsegments=5; //everything with less than this number of st
503 511
   #undef HEATER_2_MINTEMP
504 512
   #undef HEATER_2_MAXTEMP
505 513
 #endif
514
+#if TEMP_SENSOR_3 == 0
515
+  #undef HEATER_3_MINTEMP
516
+  #undef HEATER_3_MAXTEMP
517
+#endif
506 518
 #if TEMP_SENSOR_BED == 0
507 519
   #undef BED_MINTEMP
508 520
   #undef BED_MAXTEMP

+ 7
- 5
Marlin/temperature.cpp View File

@@ -136,11 +136,11 @@ static volatile bool temp_meas_ready = false;
136 136
 
137 137
 #ifdef PIDTEMP
138 138
 #ifdef PID_PARAMS_PER_EXTRUDER
139
-  float Kp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp);
140
-  float Ki[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT);
141
-  float Kd[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT);
139
+  float Kp[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp, DEFAULT_Kp);
140
+  float Ki[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT, DEFAULT_Ki*PID_dT);
141
+  float Kd[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT, DEFAULT_Kd / PID_dT);
142 142
   #ifdef PID_ADD_EXTRUSION_RATE
143
-    float Kc[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc);
143
+    float Kc[EXTRUDERS] = ARRAY_BY_EXTRUDERS(DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc, DEFAULT_Kc);
144 144
   #endif // PID_ADD_EXTRUSION_RATE
145 145
 #else //PID_PARAMS_PER_EXTRUDER
146 146
   float Kp = DEFAULT_Kp;
@@ -460,13 +460,15 @@ void checkExtruderAutoFans()
460 460
   #endif 
461 461
   #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1
462 462
     if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
463
+        && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
463 464
         && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
464 465
       setExtruderAutoFanState(EXTRUDER_2_AUTO_FAN_PIN, (fanState & 4) != 0);
465 466
   #endif
466 467
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
467 468
     if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
468
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
469 469
         && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
470
+        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
471
+        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_2_AUTO_FAN_PIN)
470 472
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
471 473
   #endif
472 474
 }

Loading…
Cancel
Save