Browse Source

Merge branch '4th-extruders' of https://github.com/MagoKimbra/Marlin into 4th-extruders

Conflicts:
	Marlin/temperature.cpp
MagoKimbra 10 years ago
parent
commit
3d4ee6c868
3 changed files with 39 additions and 20 deletions
  1. 13
    17
      Marlin/Configuration.h
  2. 23
    0
      Marlin/temperature.cpp
  3. 3
    3
      Marlin/ultralcd.h

+ 13
- 17
Marlin/Configuration.h View File

@@ -44,7 +44,7 @@
44 44
 // The following define selects which electronics board you have.
45 45
 // Please choose the name from boards.h that matches your setup
46 46
 #ifndef MOTHERBOARD
47
-  #define MOTHERBOARD BOARD_AZTEEG_X3_PRO
47
+  #define MOTHERBOARD BOARD_ULTIMAKER
48 48
 #endif
49 49
 
50 50
 // Define this to set a custom name for your generic Mendel,
@@ -104,10 +104,9 @@
104 104
 // 147 is Pt100 with 4k7 pullup
105 105
 // 110 is Pt100 with 1k pullup (non standard)
106 106
 
107
-#define TEMP_SENSOR_0 1
108
-#define TEMP_SENSOR_1 0
107
+#define TEMP_SENSOR_0 -1
108
+#define TEMP_SENSOR_1 -1
109 109
 #define TEMP_SENSOR_2 0
110
-#define TEMP_SENSOR_3 0
111 110
 #define TEMP_SENSOR_BED 0
112 111
 
113 112
 // 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.
@@ -122,22 +121,20 @@
122 121
 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
123 122
 // to check that the wiring to the thermistor is not broken.
124 123
 // Otherwise this would lead to the heater being powered on all the time.
125
-#define HEATER_0_MINTEMP 5 // degC
126
-#define HEATER_1_MINTEMP 5 // degC
127
-#define HEATER_2_MINTEMP 5 // degC
128
-#define HEATER_3_MINTEMP 5 // degC
129
-#define BED_MINTEMP      5 // degC
124
+#define HEATER_0_MINTEMP 5
125
+#define HEATER_1_MINTEMP 5
126
+#define HEATER_2_MINTEMP 5
127
+#define BED_MINTEMP 5
130 128
 
131 129
 // When temperature exceeds max temp, your heater will be switched off.
132 130
 // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
133 131
 // You should use MINTEMP for thermistor short/failure protection.
134
-#define HEATER_0_MAXTEMP 275 // degC
135
-#define HEATER_1_MAXTEMP 275 // degC
136
-#define HEATER_2_MAXTEMP 275 // degC
137
-#define HEATER_3_MAXTEMP 275 // degC
138
-#define BED_MAXTEMP      150 // degC
132
+#define HEATER_0_MAXTEMP 275
133
+#define HEATER_1_MAXTEMP 275
134
+#define HEATER_2_MAXTEMP 275
135
+#define BED_MAXTEMP 150
139 136
 
140
-// If your bed has low resistance e.g. 0.6 ohm and throws the fuse you can duty cycle it to reduce the
137
+// If your bed has low resistance e.g. .6 ohm and throws the fuse you can duty cycle it to reduce the
141 138
 // average current. The value should be an integer and the heat bed will be turned on for 1 interval of
142 139
 // HEATER_BED_DUTY_CYCLE_DIVIDER intervals.
143 140
 //#define HEATER_BED_DUTY_CYCLE_DIVIDER 4
@@ -224,7 +221,7 @@
224 221
 //if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.
225 222
 #define PREVENT_LENGTHY_EXTRUDE
226 223
 
227
-#define EXTRUDE_MINTEMP 170 // degC
224
+#define EXTRUDE_MINTEMP 170
228 225
 #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
229 226
 
230 227
 /*================== Thermal Runaway Protection ==============================
@@ -328,7 +325,6 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
328 325
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
329 326
 #define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
330 327
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
331
-#define INVERT_E3_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
332 328
 
333 329
 // ENDSTOP SETTINGS:
334 330
 // Sets direction of endstops when homing; 1=MAX, -1=MIN

+ 23
- 0
Marlin/temperature.cpp View File

@@ -1764,6 +1764,7 @@ ISR(TIMER0_COMPB_vect)
1764 1764
         raw_temp_2_value += ADC;
1765 1765
       #endif
1766 1766
       temp_state = 8;
1767
+<<<<<<< HEAD
1767 1768
       break;
1768 1769
     case 8: // Prepare TEMP_3
1769 1770
       #if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
@@ -1784,6 +1785,28 @@ ISR(TIMER0_COMPB_vect)
1784 1785
       #endif
1785 1786
       temp_state = 10; //change so that Filament Width is also measured
1786 1787
       break;
1788
+=======
1789
+      break;
1790
+    case 8: // Prepare TEMP_3
1791
+      #if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
1792
+        #if TEMP_3_PIN > 7
1793
+          ADCSRB = 1<<MUX5;
1794
+        #else
1795
+          ADCSRB = 0;
1796
+        #endif
1797
+        ADMUX = ((1 << REFS0) | (TEMP_3_PIN & 0x07));
1798
+        ADCSRA |= 1<<ADSC; // Start conversion
1799
+      #endif
1800
+      lcd_buttons_update();
1801
+      temp_state = 9;
1802
+      break;
1803
+    case 9: // Measure TEMP_3
1804
+      #if defined(TEMP_3_PIN) && (TEMP_3_PIN > -1)
1805
+        raw_temp_3_value += ADC;
1806
+      #endif
1807
+      temp_state = 10; //change so that Filament Width is also measured
1808
+      break;
1809
+>>>>>>> 0ebf896070e8364252df3b3f59111218f1918cc8
1787 1810
     case 10: //Prepare FILWIDTH 
1788 1811
      #if defined(FILWIDTH_PIN) && (FILWIDTH_PIN> -1) 
1789 1812
       #if FILWIDTH_PIN>7 

+ 3
- 3
Marlin/ultralcd.h View File

@@ -46,9 +46,9 @@
46 46
   
47 47
   extern bool cancel_heatup;
48 48
   
49
-#ifdef FILAMENT_LCD_DISPLAY
50
-  extern unsigned long message_millis;
51
-#endif
49
+  #ifdef FILAMENT_LCD_DISPLAY
50
+        extern unsigned long message_millis;
51
+  #endif
52 52
 
53 53
   void lcd_buzz(long duration,uint16_t freq);
54 54
   bool lcd_clicked();

Loading…
Cancel
Save