Pārlūkot izejas kodu

Add support for RUMBA thermocouple add on

MaikStohn 12 gadus atpakaļ
vecāks
revīzija
9cc15876be
1 mainītis faili ar 48 papildinājumiem un 9 dzēšanām
  1. 48
    9
      Marlin/pins.h

+ 48
- 9
Marlin/pins.h Parādīt failu

@@ -1053,17 +1053,56 @@
1053 1053
 #define PS_ON_PIN          45
1054 1054
 #define KILL_PIN           46
1055 1055
 
1056
-#define HEATER_0_PIN       2    // EXTRUDER 1
1057
-#define HEATER_1_PIN       3    // EXTRUDER 2
1058
-#define HEATER_2_PIN       6    // EXTRUDER 3
1056
+#if (TEMP_SENSOR_0==0)
1057
+ #define TEMP_0_PIN         -1
1058
+ #define HEATER_0_PIN       -1
1059
+#else
1060
+ #define HEATER_0_PIN        2    // EXTRUDER 1
1061
+ #if (TEMP_SENSOR_0==-1)
1062
+  #define TEMP_0_PIN         6    // ANALOG NUMBERING - connector *K1* on RUMBA thermocouple ADD ON is used
1063
+ #else
1064
+  #define TEMP_0_PIN         15   // ANALOG NUMBERING - default connector for thermistor *T0* on rumba board is used
1065
+ #endif
1066
+#endif 
1067
+
1068
+#if (TEMP_SENSOR_1==0)
1069
+ #define TEMP_1_PIN         -1
1070
+ #define HEATER_1_PIN       -1
1071
+#else
1072
+ #define HEATER_1_PIN        3    // EXTRUDER 2
1073
+ #if (TEMP_SENSOR_1==-1)
1074
+  #define TEMP_1_PIN         5    // ANALOG NUMBERING - connector *K2* on RUMBA thermocouple ADD ON is used
1075
+ #else
1076
+  #define TEMP_1_PIN         14   // ANALOG NUMBERING - default connector for thermistor *T1* on rumba board is used
1077
+ #endif
1078
+#endif
1079
+
1080
+#if (TEMP_SENSOR_2==0)
1081
+ #define TEMP_2_PIN         -1
1082
+ #define HEATER_2_PIN       -1
1083
+#else
1084
+ #define HEATER_2_PIN        6    // EXTRUDER 3
1085
+ #if (TEMP_SENSOR_2==-1)
1086
+  #define TEMP_2_PIN         7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_BED is defined as thermocouple
1087
+ #else
1088
+  #define TEMP_2_PIN         13   // ANALOG NUMBERING - default connector for thermistor *T2* on rumba board is used
1089
+ #endif
1090
+#endif
1091
+
1092
+//optional for extruder 4 or chamber: #define TEMP_X_PIN         12   // ANALOG NUMBERING - default connector for thermistor *T3* on rumba board is used
1059 1093
 //optional FAN1 can be used as 4th heater output: #define HEATER_3_PIN       8    // EXTRUDER 4
1060
-#define HEATER_BED_PIN     9    // BED
1061 1094
 
1062
-#define TEMP_0_PIN         15   // ANALOG NUMBERING
1063
-#define TEMP_1_PIN         14   // ANALOG NUMBERING
1064
-#define TEMP_2_PIN         13   // ANALOG NUMBERING
1065
-//optional for extruder 4 or chamber: #define TEMP_2_PIN         12   // ANALOG NUMBERING
1066
-#define TEMP_BED_PIN       11   // ANALOG NUMBERING
1095
+#if (TEMP_SENSOR_BED==0)
1096
+ #define TEMP_BED_PIN       -1
1097
+ #define HEATER_BED_PIN     -1
1098
+#else
1099
+ #define HEATER_BED_PIN      9    // BED
1100
+ #if (TEMP_SENSOR_BED==-1)
1101
+  #define TEMP_BED_PIN       7    // ANALOG NUMBERING - connector *K3* on RUMBA thermocouple ADD ON is used <-- this can not be used when TEMP_SENSOR_2 is defined as thermocouple
1102
+ #else
1103
+  #define TEMP_BED_PIN       11   // ANALOG NUMBERING - default connector for thermistor *THB* on rumba board is used
1104
+ #endif
1105
+#endif
1067 1106
 
1068 1107
 #define SDPOWER            -1
1069 1108
 #define SDSS               53

Notiek ielāde…
Atcelt
Saglabāt