Kaynağa Gözat

Add support for Megatronics

brupje 12 yıl önce
ebeveyn
işleme
d07b6e93d5
1 değiştirilmiş dosya ile 103 ekleme ve 0 silme
  1. 103
    0
      Marlin/pins.h

+ 103
- 0
Marlin/pins.h Dosyayı Görüntüle

@@ -1132,6 +1132,109 @@
1132 1132
 #endif
1133 1133
 
1134 1134
 
1135
+/****************************************************************************************
1136
+* MegaTronics
1137
+*
1138
+****************************************************************************************/
1139
+#if MOTHERBOARD == 70
1140
+#define KNOWN_BOARD 1
1141
+
1142
+//////////////////FIX THIS//////////////
1143
+
1144
+ #ifndef __AVR_ATmega2560__
1145
+ #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
1146
+ #endif
1147
+
1148
+
1149
+
1150
+
1151
+#define X_STEP_PIN         26
1152
+#define X_DIR_PIN          28
1153
+#define X_ENABLE_PIN       24
1154
+#define X_MIN_PIN          41
1155
+#define X_MAX_PIN          37   //2 //Max endstops default to disabled "-1", set to commented value to enable.
1156
+
1157
+#define Y_STEP_PIN         60 // A6
1158
+#define Y_DIR_PIN          61 // A7
1159
+#define Y_ENABLE_PIN       22
1160
+#define Y_MIN_PIN          14
1161
+#define Y_MAX_PIN          15   //15
1162
+
1163
+#define Z_STEP_PIN         54 // A0
1164
+#define Z_DIR_PIN          55 // A1
1165
+#define Z_ENABLE_PIN       56 // A2
1166
+#define Z_MIN_PIN          18
1167
+#define Z_MAX_PIN          19
1168
+
1169
+#define E0_STEP_PIN        31
1170
+#define E0_DIR_PIN         32
1171
+#define E0_ENABLE_PIN      38
1172
+
1173
+#define E1_STEP_PIN        34
1174
+#define E1_DIR_PIN         36
1175
+#define E1_ENABLE_PIN      30
1176
+
1177
+#define SDPOWER            -1
1178
+#define SDSS               53
1179
+#define LED_PIN            13
1180
+
1181
+
1182
+#define FAN_PIN            7 // IO pin. Buffer needed
1183
+#define PS_ON_PIN          12
1184
+#define KILL_PIN           -1
1185
+
1186
+#define HEATER_0_PIN       9    // EXTRUDER 1
1187
+#define HEATER_1_PIN       8    // EXTRUDER 2 (FAN On Sprinter)
1188
+#define HEATER_2_PIN       -1  
1189
+
1190
+#if TEMP_SENSOR_0 == -1 
1191
+#define TEMP_0_PIN         8   // ANALOG NUMBERING
1192
+#else
1193
+#define TEMP_0_PIN         13   // ANALOG NUMBERING
1194
+
1195
+#endif
1196
+
1197
+#define TEMP_1_PIN         15   // ANALOG NUMBERING
1198
+#define TEMP_2_PIN         -1   // ANALOG NUMBERING
1199
+#define HEATER_BED_PIN     10   // BED
1200
+#define TEMP_BED_PIN       14   // ANALOG NUMBERING
1201
+
1202
+#define BEEPER 33			// Beeper on AUX-4
1203
+
1204
+
1205
+#ifdef ULTRA_LCD
1206
+
1207
+  #ifdef NEWPANEL
1208
+  //arduino pin which triggers an piezzo beeper
1209
+    
1210
+    #define LCD_PINS_RS 16 
1211
+    #define LCD_PINS_ENABLE 17
1212
+    #define LCD_PINS_D4 23
1213
+    #define LCD_PINS_D5 25 
1214
+    #define LCD_PINS_D6 27
1215
+    #define LCD_PINS_D7 29
1216
+    
1217
+    //buttons are directly attached using AUX-2
1218
+    #define BTN_EN1 37
1219
+    #define BTN_EN2 35
1220
+    #define BTN_ENC 43  //the click
1221
+    
1222
+    #define BLEN_C 2
1223
+    #define BLEN_B 1
1224
+    #define BLEN_A 0
1225
+    
1226
+    #define SDCARDDETECT -1		// Ramps does not use this port
1227
+    
1228
+      //encoder rotation values
1229
+    #define encrot0 0
1230
+    #define encrot1 2
1231
+    #define encrot2 3
1232
+    #define encrot3 1
1233
+#endif
1234
+#endif //ULTRA_LCD
1235
+
1236
+#endif
1237
+
1135 1238
 #ifndef KNOWN_BOARD
1136 1239
 #error Unknown MOTHERBOARD value in configuration.h
1137 1240
 #endif

Loading…
İptal
Kaydet