Subversion Repositories MK-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
/**
2
 * Marlin 3D Printer Firmware
3
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
 *
5
 * Based on Sprinter and grbl.
6
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
 *
8
 * This program is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 *
21
 */
22
 
23
/************************************************
24
 * Rambo pin assignments MODIFIED FOR Scoovo X9H
25
 ************************************************/
26
 
27
#ifndef __AVR_ATmega2560__
28
  #error "Oops!  Make sure you have 'Arduino Mega 2560' selected from the 'Tools -> Boards' menu."
29
#endif
30
 
31
#define BOARD_NAME "Scoovo X9H"
32
 
33
//
34
// Servos
35
//
36
#define SERVO0_PIN 22   // Motor header MX1
37
#define SERVO1_PIN 23   // Motor header MX2
38
#define SERVO2_PIN 24   // Motor header MX3
39
#define SERVO3_PIN  5   // PWM header pin 5
40
 
41
//
42
// Limit Switches
43
//
44
#define X_MIN_PIN           12
45
#define X_MAX_PIN           24
46
#define Y_MIN_PIN           11
47
#define Y_MAX_PIN           23
48
#define Z_MIN_PIN           10
49
#define Z_MAX_PIN           30
50
 
51
//
52
// Z Probe (when not Z_MIN_PIN)
53
//
54
#ifndef Z_MIN_PROBE_PIN
55
  #define Z_MIN_PROBE_PIN   30
56
#endif
57
 
58
//
59
// Steppers
60
//
61
#define X_STEP_PIN          37
62
#define X_DIR_PIN           48
63
#define X_ENABLE_PIN        29
64
 
65
#define Y_STEP_PIN          36
66
#define Y_DIR_PIN           49
67
#define Y_ENABLE_PIN        28
68
 
69
#define Z_STEP_PIN          35
70
#define Z_DIR_PIN           47
71
#define Z_ENABLE_PIN        27
72
 
73
#define E0_STEP_PIN         34
74
#define E0_DIR_PIN          43
75
#define E0_ENABLE_PIN       26
76
 
77
#define E1_STEP_PIN         33
78
#define E1_DIR_PIN          42
79
#define E1_ENABLE_PIN       25
80
 
81
// Microstepping pins - Mapping not from fastio.h (?)
82
#define X_MS1_PIN           40
83
#define X_MS2_PIN           41
84
#define Y_MS1_PIN           69
85
#define Y_MS2_PIN           39
86
#define Z_MS1_PIN           68
87
#define Z_MS2_PIN           67
88
#define E0_MS1_PIN          65
89
#define E0_MS2_PIN          66
90
#define E1_MS1_PIN          63
91
#define E1_MS2_PIN          64
92
 
93
#define DIGIPOTSS_PIN       38
94
#define DIGIPOT_CHANNELS {4,5,3,0,1}   // X Y Z E0 E1 digipot channels to stepper driver mapping
95
 
96
//
97
// Temperature Sensors
98
//
99
#define TEMP_0_PIN           0   // Analog Input
100
#define TEMP_BED_PIN         7   // Analog Input
101
 
102
//
103
// Heaters / Fans
104
//
105
#define HEATER_0_PIN         9
106
#define HEATER_1_PIN         7
107
#define HEATER_BED_PIN       3
108
 
109
#ifndef FAN_PIN
110
  #define FAN_PIN            8
111
#endif
112
#define FAN1_PIN             6
113
#define FAN2_PIN             2
114
 
115
//
116
// Misc. Functions
117
//
118
#define SDSS                53
119
#define LED_PIN             13
120
#define PS_ON_PIN            4
121
 
122
#ifndef FILWIDTH_PIN
123
  #define FILWIDTH_PIN       3   // Analog Input
124
#endif
125
 
126
//
127
// LCD / Controller
128
//
129
#define LCD_PINS_RS         70   // Ext2_5
130
#define LCD_PINS_ENABLE     71   // Ext2_7
131
#define LCD_PINS_D4         72   // Ext2_9 ?
132
#define LCD_PINS_D5         73   // Ext2_11 ?
133
#define LCD_PINS_D6         74   // Ext2_13
134
#define LCD_PINS_D7         75   // Ext2_15 ?
135
#define BEEPER_PIN          -1
136
 
137
#define BTN_HOME            80   // Ext_16
138
#define BTN_CENTER          81   // Ext_14
139
#define BTN_ENC             BTN_CENTER
140
#define BTN_RIGHT           82   // Ext_12
141
#define BTN_LEFT            83   // Ext_10
142
#define BTN_UP              84   // Ext2_8
143
#define BTN_DOWN            85   // Ext2_6
144
 
145
#define HOME_PIN            BTN_HOME
146
 
147
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
148
  #define BEEPER_PIN        44
149
  // Pins for DOGM SPI LCD Support
150
  #define DOGLCD_A0         70
151
  #define DOGLCD_CS         71
152
  #define LCD_SCREEN_ROT_180
153
 
154
  #define SD_DETECT_PIN     -1   // Pin 72 if using easy adapter board
155
 
156
  #define STAT_LED_RED_PIN  22
157
  #define STAT_LED_BLUE_PIN 32
158
#endif // VIKI2/miniVIKI