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
 #define TEMP_SENSOR_0 -1
122
 #define TEMP_SENSOR_0 -1
123
 #define TEMP_SENSOR_1 -1
123
 #define TEMP_SENSOR_1 -1
124
 #define TEMP_SENSOR_2 0
124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125
 #define TEMP_SENSOR_BED 0
126
 #define TEMP_SENSOR_BED 0
126
 
127
 
127
 // 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.
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
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_2_MINTEMP 5
142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142
 #define BED_MINTEMP 5
144
 #define BED_MINTEMP 5
143
 
145
 
144
 // When temperature exceeds max temp, your heater will be switched off.
146
 // When temperature exceeds max temp, your heater will be switched off.
147
 #define HEATER_0_MAXTEMP 275
149
 #define HEATER_0_MAXTEMP 275
148
 #define HEATER_1_MAXTEMP 275
150
 #define HEATER_1_MAXTEMP 275
149
 #define HEATER_2_MAXTEMP 275
151
 #define HEATER_2_MAXTEMP 275
152
+#define HEATER_3_MAXTEMP 275
150
 #define BED_MAXTEMP 150
153
 #define BED_MAXTEMP 150
151
 
154
 
152
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
341
 #define DISABLE_E false // For all extruders
344
 #define DISABLE_E false // For all extruders
342
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
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
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
348
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
346
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
349
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
347
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
355
 // ENDSTOP SETTINGS:
352
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
356
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
586
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
590
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
587
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
599
 // The RepRapDiscount Smart Controller (white PCB)
590
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
600
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
591
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
601
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
619
  #define DEFAULT_LCD_CONTRAST 17
629
  #define DEFAULT_LCD_CONTRAST 17
620
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
648
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
623
  #define DOGLCD
649
  #define DOGLCD
624
  #define U8GLIB_ST7920
650
  #define U8GLIB_ST7920

+ 9
- 0
Marlin/Marlin_main.cpp View File

659
   digitalWrite(SERVO0_PIN, LOW); // turn it off
659
   digitalWrite(SERVO0_PIN, LOW); // turn it off
660
 #endif // Z_PROBE_SLED
660
 #endif // Z_PROBE_SLED
661
   setup_homepin();
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
 #elif defined(MAKRPANEL)
92
 #elif defined(MAKRPANEL)
93
 // The MaKrPanel display, ST7565 controller as well
93
 // The MaKrPanel display, ST7565 controller as well
94
 U8GLIB_NHD_C12864 u8g(DOGLCD_CS, DOGLCD_A0);
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
 #else
98
 #else
96
 // for regular DOGM128 display with HW-SPI
99
 // for regular DOGM128 display with HW-SPI
97
 U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0
100
 U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
122
 #define TEMP_SENSOR_0 1
122
 #define TEMP_SENSOR_0 1
123
 #define TEMP_SENSOR_1 0
123
 #define TEMP_SENSOR_1 0
124
 #define TEMP_SENSOR_2 0
124
 #define TEMP_SENSOR_2 0
125
+#define TEMP_SENSOR_3 0
125
 #define TEMP_SENSOR_BED 0
126
 #define TEMP_SENSOR_BED 0
126
 
127
 
127
 // 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.
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
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_0_MINTEMP 5
140
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_1_MINTEMP 5
141
 #define HEATER_2_MINTEMP 5
142
 #define HEATER_2_MINTEMP 5
143
+#define HEATER_3_MINTEMP 5
142
 #define BED_MINTEMP 5
144
 #define BED_MINTEMP 5
143
 
145
 
144
 // When temperature exceeds max temp, your heater will be switched off.
146
 // When temperature exceeds max temp, your heater will be switched off.
147
 #define HEATER_0_MAXTEMP 260
149
 #define HEATER_0_MAXTEMP 260
148
 #define HEATER_1_MAXTEMP 260
150
 #define HEATER_1_MAXTEMP 260
149
 #define HEATER_2_MAXTEMP 260
151
 #define HEATER_2_MAXTEMP 260
152
+#define HEATER_3_MAXTEMP 260
150
 #define BED_MAXTEMP 150
153
 #define BED_MAXTEMP 150
151
 
154
 
152
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
351
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
354
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
352
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
355
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
353
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
361
 // ENDSTOP SETTINGS:
358
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
362
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
587
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
591
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
588
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
600
 // The RepRapDiscount Smart Controller (white PCB)
591
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
601
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
592
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
602
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
620
  #define DEFAULT_LCD_CONTRAST 17
630
  #define DEFAULT_LCD_CONTRAST 17
621
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
649
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
624
  #define DOGLCD
650
  #define DOGLCD
625
  #define U8GLIB_ST7920
651
  #define U8GLIB_ST7920

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
124
 #define TEMP_SENSOR_0 5
124
 #define TEMP_SENSOR_0 5
125
 #define TEMP_SENSOR_1 0
125
 #define TEMP_SENSOR_1 0
126
 #define TEMP_SENSOR_2 0
126
 #define TEMP_SENSOR_2 0
127
+#define TEMP_SENSOR_3 0
127
 #define TEMP_SENSOR_BED 5
128
 #define TEMP_SENSOR_BED 5
128
 
129
 
129
 // 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.
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
 #define HEATER_0_MINTEMP 5
142
 #define HEATER_0_MINTEMP 5
142
 #define HEATER_1_MINTEMP 5
143
 #define HEATER_1_MINTEMP 5
143
 #define HEATER_2_MINTEMP 5
144
 #define HEATER_2_MINTEMP 5
145
+#define HEATER_3_MINTEMP 5
144
 #define BED_MINTEMP 5
146
 #define BED_MINTEMP 5
145
 
147
 
146
 // When temperature exceeds max temp, your heater will be switched off.
148
 // When temperature exceeds max temp, your heater will be switched off.
149
 #define HEATER_0_MAXTEMP 275
151
 #define HEATER_0_MAXTEMP 275
150
 #define HEATER_1_MAXTEMP 275
152
 #define HEATER_1_MAXTEMP 275
151
 #define HEATER_2_MAXTEMP 275
153
 #define HEATER_2_MAXTEMP 275
154
+#define HEATER_3_MAXTEMP 275
152
 #define BED_MAXTEMP 150
155
 #define BED_MAXTEMP 150
153
 
156
 
154
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
157
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
357
 
360
 
358
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
361
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
359
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
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
 #define INVERT_E0_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR true   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
369
 // ENDSTOP SETTINGS:
366
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
370
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
597
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
601
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
598
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
610
 // The RepRapDiscount Smart Controller (white PCB)
601
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
611
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
602
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
612
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
630
  #define DEFAULT_LCD_CONTRAST 17
640
  #define DEFAULT_LCD_CONTRAST 17
631
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
659
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
634
  #define DOGLCD
660
  #define DOGLCD
635
  #define U8GLIB_ST7920
661
  #define U8GLIB_ST7920

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
142
 #define TEMP_SENSOR_0 1
142
 #define TEMP_SENSOR_0 1
143
 #define TEMP_SENSOR_1 0
143
 #define TEMP_SENSOR_1 0
144
 #define TEMP_SENSOR_2 0
144
 #define TEMP_SENSOR_2 0
145
+#define TEMP_SENSOR_3 0
145
 #define TEMP_SENSOR_BED 1
146
 #define TEMP_SENSOR_BED 1
146
 
147
 
147
 // 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.
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
 #define HEATER_0_MINTEMP 5
160
 #define HEATER_0_MINTEMP 5
160
 #define HEATER_1_MINTEMP 5
161
 #define HEATER_1_MINTEMP 5
161
 #define HEATER_2_MINTEMP 5
162
 #define HEATER_2_MINTEMP 5
163
+#define HEATER_3_MINTEMP 5
162
 #define BED_MINTEMP 5
164
 #define BED_MINTEMP 5
163
 
165
 
164
 // When temperature exceeds max temp, your heater will be switched off.
166
 // When temperature exceeds max temp, your heater will be switched off.
167
 #define HEATER_0_MAXTEMP 275
169
 #define HEATER_0_MAXTEMP 275
168
 #define HEATER_1_MAXTEMP 275
170
 #define HEATER_1_MAXTEMP 275
169
 #define HEATER_2_MAXTEMP 275
171
 #define HEATER_2_MAXTEMP 275
172
+#define HEATER_3_MAXTEMP 275
170
 #define BED_MAXTEMP 150
173
 #define BED_MAXTEMP 150
171
 
174
 
172
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
175
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
380
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
383
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
381
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
384
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
382
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
390
 // ENDSTOP SETTINGS:
387
 // Sets direction of endstop	s when homing; 1=MAX, -1=MIN
391
 // Sets direction of endstop	s when homing; 1=MAX, -1=MIN
590
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
594
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
591
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
603
 // The RepRapDiscount Smart Controller (white PCB)
594
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
604
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
595
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
605
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
623
  #define DEFAULT_LCD_CONTRAST 17
633
  #define DEFAULT_LCD_CONTRAST 17
624
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
652
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
627
  #define DOGLCD
653
  #define DOGLCD
628
  #define U8GLIB_ST7920
654
  #define U8GLIB_ST7920

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

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

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
125
 #define TEMP_SENSOR_0 1
125
 #define TEMP_SENSOR_0 1
126
 #define TEMP_SENSOR_1 0
126
 #define TEMP_SENSOR_1 0
127
 #define TEMP_SENSOR_2 0
127
 #define TEMP_SENSOR_2 0
128
+#define TEMP_SENSOR_3 0
128
 #define TEMP_SENSOR_BED 0
129
 #define TEMP_SENSOR_BED 0
129
 
130
 
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.
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
 #define HEATER_0_MINTEMP 5
143
 #define HEATER_0_MINTEMP 5
143
 #define HEATER_1_MINTEMP 5
144
 #define HEATER_1_MINTEMP 5
144
 #define HEATER_2_MINTEMP 5
145
 #define HEATER_2_MINTEMP 5
146
+#define HEATER_3_MINTEMP 5
145
 #define BED_MINTEMP 5
147
 #define BED_MINTEMP 5
146
 
148
 
147
 // When temperature exceeds max temp, your heater will be switched off.
149
 // When temperature exceeds max temp, your heater will be switched off.
150
 #define HEATER_0_MAXTEMP 260
152
 #define HEATER_0_MAXTEMP 260
151
 #define HEATER_1_MAXTEMP 260
153
 #define HEATER_1_MAXTEMP 260
152
 #define HEATER_2_MAXTEMP 260
154
 #define HEATER_2_MAXTEMP 260
155
+#define HEATER_3_MAXTEMP 260
153
 #define BED_MAXTEMP 150
156
 #define BED_MAXTEMP 150
154
 
157
 
155
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
158
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
351
 #define DISABLE_E false // For all extruders
354
 #define DISABLE_E false // For all extruders
352
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
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
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
358
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
356
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
359
 #define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
357
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
365
 // ENDSTOP SETTINGS:
362
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
366
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
591
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
595
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
592
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
604
 // The RepRapDiscount Smart Controller (white PCB)
595
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
605
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
596
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
606
 #define REPRAP_DISCOUNT_SMART_CONTROLLER
624
  #define DEFAULT_LCD_CONTRAST 17
634
  #define DEFAULT_LCD_CONTRAST 17
625
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
653
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
628
  #define DOGLCD
654
  #define DOGLCD
629
  #define U8GLIB_ST7920
655
  #define U8GLIB_ST7920

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
147
 #define TEMP_SENSOR_0 -1
147
 #define TEMP_SENSOR_0 -1
148
 #define TEMP_SENSOR_1 -1
148
 #define TEMP_SENSOR_1 -1
149
 #define TEMP_SENSOR_2 0
149
 #define TEMP_SENSOR_2 0
150
+#define TEMP_SENSOR_3 0
150
 #define TEMP_SENSOR_BED 0
151
 #define TEMP_SENSOR_BED 0
151
 
152
 
152
 // 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.
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
 #define HEATER_0_MINTEMP 5
165
 #define HEATER_0_MINTEMP 5
165
 #define HEATER_1_MINTEMP 5
166
 #define HEATER_1_MINTEMP 5
166
 #define HEATER_2_MINTEMP 5
167
 #define HEATER_2_MINTEMP 5
168
+#define HEATER_3_MINTEMP 5
167
 #define BED_MINTEMP 5
169
 #define BED_MINTEMP 5
168
 
170
 
169
 // When temperature exceeds max temp, your heater will be switched off.
171
 // When temperature exceeds max temp, your heater will be switched off.
172
 #define HEATER_0_MAXTEMP 275
174
 #define HEATER_0_MAXTEMP 275
173
 #define HEATER_1_MAXTEMP 275
175
 #define HEATER_1_MAXTEMP 275
174
 #define HEATER_2_MAXTEMP 275
176
 #define HEATER_2_MAXTEMP 275
177
+#define HEATER_3_MAXTEMP 275
175
 #define BED_MAXTEMP 150
178
 #define BED_MAXTEMP 150
176
 
179
 
177
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
180
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
368
 #define INVERT_Z_DIR false
371
 #define INVERT_Z_DIR false
369
 
372
 
370
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
378
 // ENDSTOP SETTINGS:
375
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
379
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
495
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
499
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
496
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
508
 // The RepRapDiscount Smart Controller (white PCB)
499
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
509
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
500
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
510
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
535
  #define DEFAULT_LCD_CONTRAST 17
545
  #define DEFAULT_LCD_CONTRAST 17
536
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
564
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
539
  #define DOGLCD
565
  #define DOGLCD
540
  #define U8GLIB_ST7920
566
  #define U8GLIB_ST7920

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

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

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
127
 #define TEMP_SENSOR_0 1
127
 #define TEMP_SENSOR_0 1
128
 #define TEMP_SENSOR_1 0
128
 #define TEMP_SENSOR_1 0
129
 #define TEMP_SENSOR_2 0
129
 #define TEMP_SENSOR_2 0
130
+#define TEMP_SENSOR_3 0
130
 #define TEMP_SENSOR_BED 12
131
 #define TEMP_SENSOR_BED 12
131
 
132
 
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.
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
 #define HEATER_0_MINTEMP 5
145
 #define HEATER_0_MINTEMP 5
145
 #define HEATER_1_MINTEMP 5
146
 #define HEATER_1_MINTEMP 5
146
 #define HEATER_2_MINTEMP 5
147
 #define HEATER_2_MINTEMP 5
148
+#define HEATER_3_MINTEMP 5
147
 #define BED_MINTEMP 5
149
 #define BED_MINTEMP 5
148
 
150
 
149
 // When temperature exceeds max temp, your heater will be switched off.
151
 // When temperature exceeds max temp, your heater will be switched off.
152
 #define HEATER_0_MAXTEMP 275
154
 #define HEATER_0_MAXTEMP 275
153
 #define HEATER_1_MAXTEMP 275
155
 #define HEATER_1_MAXTEMP 275
154
 #define HEATER_2_MAXTEMP 275
156
 #define HEATER_2_MAXTEMP 275
157
+#define HEATER_3_MAXTEMP 275
155
 #define BED_MAXTEMP 150
158
 #define BED_MAXTEMP 150
156
 
159
 
157
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
160
 // If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
352
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
355
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
353
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
356
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
354
 #define INVERT_Z_DIR false    // for Mendel set to false, for Orca set to true
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
363
 // ENDSTOP SETTINGS:
360
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
364
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
565
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
569
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
566
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
578
 // The RepRapDiscount Smart Controller (white PCB)
569
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
579
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
570
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
580
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
598
  #define DEFAULT_LCD_CONTRAST 17
608
  #define DEFAULT_LCD_CONTRAST 17
599
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
627
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
602
  #define DOGLCD
628
  #define DOGLCD
603
  #define U8GLIB_ST7920
629
  #define U8GLIB_ST7920

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

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

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

1
-#ifndef CONFIGURATION_H
1
+#ifndef CONFIGURATION_H
2
 #define CONFIGURATION_H
2
 #define CONFIGURATION_H
3
 
3
 
4
 #include "boards.h"
4
 #include "boards.h"
126
 #define TEMP_SENSOR_0 5
126
 #define TEMP_SENSOR_0 5
127
 #define TEMP_SENSOR_1 0
127
 #define TEMP_SENSOR_1 0
128
 #define TEMP_SENSOR_2 0
128
 #define TEMP_SENSOR_2 0
129
+#define TEMP_SENSOR_3 0
129
 #define TEMP_SENSOR_BED 5
130
 #define TEMP_SENSOR_BED 5
130
 
131
 
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.
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
 #define HEATER_0_MINTEMP 5
144
 #define HEATER_0_MINTEMP 5
144
 #define HEATER_1_MINTEMP 5
145
 #define HEATER_1_MINTEMP 5
145
 #define HEATER_2_MINTEMP 5
146
 #define HEATER_2_MINTEMP 5
147
+#define HEATER_3_MINTEMP 5
146
 #define BED_MINTEMP 5
148
 #define BED_MINTEMP 5
147
 
149
 
148
 // When temperature exceeds max temp, your heater will be switched off.
150
 // When temperature exceeds max temp, your heater will be switched off.
151
 #define HEATER_0_MAXTEMP 275
153
 #define HEATER_0_MAXTEMP 275
152
 #define HEATER_1_MAXTEMP 275
154
 #define HEATER_1_MAXTEMP 275
153
 #define HEATER_2_MAXTEMP 275
155
 #define HEATER_2_MAXTEMP 275
156
+#define HEATER_3_MAXTEMP 275
154
 #define BED_MAXTEMP 150
157
 #define BED_MAXTEMP 150
155
 
158
 
156
 #define CONFIG_STEPPERS_TOSHIBA	1
159
 #define CONFIG_STEPPERS_TOSHIBA	1
353
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
356
 #define DISABLE_INACTIVE_EXTRUDER true //disable only inactive extruders and keep active extruder enabled
354
 
357
 
355
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
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
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
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
 // ENDSTOP SETTINGS:
366
 // ENDSTOP SETTINGS:
363
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
367
 // Sets direction of endstops when homing; 1=MAX, -1=MIN
578
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
582
 // http://reprap.org/wiki/MaKr3d_MaKrPanel
579
 //#define MAKRPANEL
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
 // The RepRapDiscount Smart Controller (white PCB)
591
 // The RepRapDiscount Smart Controller (white PCB)
582
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
592
 // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
583
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
593
 //#define REPRAP_DISCOUNT_SMART_CONTROLLER
611
  #define DEFAULT_LCD_CONTRAST 17
621
  #define DEFAULT_LCD_CONTRAST 17
612
 #endif
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
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
640
 #if defined (REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
615
  #define DOGLCD
641
  #define DOGLCD
616
  #define U8GLIB_ST7920
642
  #define U8GLIB_ST7920

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

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

+ 7
- 5
Marlin/temperature.cpp View File

136
 
136
 
137
 #ifdef PIDTEMP
137
 #ifdef PIDTEMP
138
 #ifdef PID_PARAMS_PER_EXTRUDER
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
   #ifdef PID_ADD_EXTRUSION_RATE
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
   #endif // PID_ADD_EXTRUSION_RATE
144
   #endif // PID_ADD_EXTRUSION_RATE
145
 #else //PID_PARAMS_PER_EXTRUDER
145
 #else //PID_PARAMS_PER_EXTRUDER
146
   float Kp = DEFAULT_Kp;
146
   float Kp = DEFAULT_Kp;
460
   #endif 
460
   #endif 
461
   #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1
461
   #if defined(EXTRUDER_2_AUTO_FAN_PIN) && EXTRUDER_2_AUTO_FAN_PIN > -1
462
     if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
462
     if (EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
463
+        && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
463
         && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
464
         && EXTRUDER_2_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
464
       setExtruderAutoFanState(EXTRUDER_2_AUTO_FAN_PIN, (fanState & 4) != 0);
465
       setExtruderAutoFanState(EXTRUDER_2_AUTO_FAN_PIN, (fanState & 4) != 0);
465
   #endif
466
   #endif
466
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
467
   #if defined(EXTRUDER_3_AUTO_FAN_PIN) && EXTRUDER_3_AUTO_FAN_PIN > -1
467
     if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
468
     if (EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN 
468
-        && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_1_AUTO_FAN_PIN)
469
         && EXTRUDER_3_AUTO_FAN_PIN != EXTRUDER_0_AUTO_FAN_PIN)
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
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
472
       setExtruderAutoFanState(EXTRUDER_3_AUTO_FAN_PIN, (fanState & 8) != 0);
471
   #endif
473
   #endif
472
 }
474
 }

Loading…
Cancel
Save