Subversion Repositories MK-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
/**
2
 * CartesioV12 pin assignments
3
 */
4
 
5
#if !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega2560__)
6
  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
7
#endif
8
 
9
#define BOARD_NAME            "CN Controls V12"
10
 
11
//
12
// Limit Switches
13
//
14
#define X_STOP_PIN         19
15
#define Y_STOP_PIN         22
16
#define Z_STOP_PIN         23
17
 
18
//
19
// Steppers
20
//
21
#define X_STEP_PIN         25
22
#define X_DIR_PIN          27
23
#define X_ENABLE_PIN       26
24
 
25
#define Y_STEP_PIN         28
26
#define Y_DIR_PIN          30
27
#define Y_ENABLE_PIN       29
28
 
29
#define Z_STEP_PIN         31
30
#define Z_DIR_PIN          33
31
#define Z_ENABLE_PIN       32
32
 
33
#define E0_STEP_PIN        57
34
#define E0_DIR_PIN         55
35
#define E0_ENABLE_PIN      58
36
 
37
#define E1_STEP_PIN        61
38
#define E1_DIR_PIN         62
39
#define E1_ENABLE_PIN      60
40
 
41
#define E2_STEP_PIN        46
42
#define E2_DIR_PIN         66
43
#define E2_ENABLE_PIN      44
44
 
45
#define E3_STEP_PIN        45
46
#define E3_DIR_PIN         69
47
#define E3_ENABLE_PIN      47
48
 
49
//
50
// Temperature Sensors
51
//
52
#define TEMP_0_PIN          0   // Analog Input
53
#define TEMP_1_PIN          9   // Analog Input.  9 for tool2 -> 13 for chambertemp
54
#define TEMP_2_PIN         13   // Analog Input. 10 for tool3 -> 13 for chambertemp
55
#define TEMP_3_PIN         11   // Analog Input. 11 for tool4 -> 13 for chambertemp
56
#define TEMP_BED_PIN       14   // Analog Input
57
//#define TEMP_CHAMBER_PIN   13   // Analog Input
58
 
59
//
60
// Heaters / Fans
61
//
62
#define HEATER_0_PIN       11
63
#define HEATER_1_PIN        9
64
#define HEATER_2_PIN        6
65
#define HEATER_3_PIN        3
66
#define HEATER_BED_PIN     24
67
 
68
#ifndef FAN_PIN
69
  #define FAN_PIN           5   // 5 is PWMtool3 -> 7 is common PWM pin for all tools
70
#endif
71
 
72
#define ORIG_E0_AUTO_FAN_PIN 7
73
#define ORIG_E1_AUTO_FAN_PIN 7
74
#define ORIG_E2_AUTO_FAN_PIN 7
75
#define ORIG_E3_AUTO_FAN_PIN 7
76
 
77
//
78
// Misc. Functions
79
//
80
#define SDSS               53
81
#define SD_DETECT_PIN      15
82
 
83
// Tools
84
 
85
//#define TOOL_0_PIN         56
86
//#define TOOL_0_PWM_PIN     10   // red warning led at dual extruder
87
//#define TOOL_1_PIN         59
88
//#define TOOL_1_PWM_PIN      8   // lights at dual extruder
89
//#define TOOL_2_PIN          4
90
//#define TOOL_2_PWM_PIN      5
91
//#define TOOL_3_PIN         14
92
//#define TOOL_3_PWM_PIN      2
93
 
94
// Common I/O
95
 
96
#ifndef FIL_RUNOUT_PIN
97
  #define FIL_RUNOUT_PIN   18
98
#endif
99
//#define PWM_1_PIN          12
100
//#define PWM_2_PIN          13
101
//#define SPARE_IO           17
102
 
103
//
104
// LCD / Controller
105
//
106
#define BEEPER_PIN         16
107
 
108
// Pins for DOGM SPI LCD Support
109
#define DOGLCD_A0          39
110
#define DOGLCD_CS          35
111
#define DOGLCD_MOSI        48
112
#define DOGLCD_SCK         49
113
#define LCD_SCREEN_ROT_180
114
 
115
// The encoder and click button
116
#define BTN_EN1            36
117
#define BTN_EN2            34
118
#define BTN_ENC            38
119
 
120
// Hardware buttons for manual movement of XYZ
121
#define SHIFT_OUT          42
122
#define SHIFT_LD           41
123
#define SHIFT_CLK          40
124
 
125
//#define UI1              43
126
//#define UI2              37
127
 
128
#define STAT_LED_BLUE_PIN  -1
129
#define STAT_LED_RED_PIN   10   // TOOL_0_PWM_PIN