ソースを参照

Add Cartesio CN Controls V11 board

Indrek Ardel 8年前
コミット
ecb23c1b65

+ 1
- 0
Marlin/boards.h ファイルの表示

@@ -29,6 +29,7 @@
29 29
 #define BOARD_GEN7_12           11   // Gen7 v1.1, v1.2
30 30
 #define BOARD_GEN7_13           12   // Gen7 v1.3
31 31
 #define BOARD_GEN7_14           13   // Gen7 v1.4
32
+#define BOARD_CNCONTROLS_11     111  // Cartesio CN Controls V11
32 33
 #define BOARD_CNCONTROLS_12     112  // Cartesio CN Controls V12
33 34
 #define BOARD_CHEAPTRONIC       2    // Cheaptronic v1.0
34 35
 #define BOARD_SETHI             20   // Sethi 3D_1

+ 7
- 2
Marlin/dogm_lcd_implementation.h ファイルの表示

@@ -145,8 +145,13 @@
145 145
   //U8GLIB_ST7920_128X64_RRD u8g(0,0,0);
146 146
   U8GLIB_ST7920_128X64_RRD u8g(0);
147 147
 #elif defined(CARTESIO_UI)
148
-  // The CartesioUI display with SW-SPI
149
-  U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0);
148
+  // The CartesioUI display
149
+  #if DOGLCD_MOSI != -1 && DOGLCD_SCK != -1
150
+    // using SW-SPI
151
+    U8GLIB_DOGM128 u8g(DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, DOGLCD_A0);
152
+  #else
153
+    U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);
154
+  #endif
150 155
 #elif ENABLED(U8GLIB_LM6059_AF)
151 156
   // Based on the Adafruit ST7565 (http://www.adafruit.com/products/250)
152 157
   U8GLIB_LM6059 u8g(DOGLCD_CS, DOGLCD_A0);

+ 1
- 0
Marlin/example_configurations/Cartesio/Configuration.h ファイルの表示

@@ -118,6 +118,7 @@
118 118
 // The following define selects which electronics board you have.
119 119
 // Please choose the name from boards.h that matches your setup
120 120
 #ifndef MOTHERBOARD
121
+  //#define MOTHERBOARD BOARD_CNCONTROLS_11
121 122
   #define MOTHERBOARD BOARD_CNCONTROLS_12
122 123
 #endif
123 124
 

+ 2
- 1
Marlin/pins.h ファイルの表示

@@ -31,6 +31,8 @@
31 31
   #include "pins_GEN7_13.h"
32 32
 #elif MB(GEN7_14)
33 33
   #include "pins_GEN7_14.h"
34
+#elif MB(CNCONTROLS_11)
35
+  #include "pins_CNCONTROLS_11.h"
34 36
 #elif MB(CNCONTROLS_12)
35 37
   #include "pins_CNCONTROLS_12.h"
36 38
 #elif MB(CHEAPTRONIC)
@@ -422,4 +424,3 @@
422 424
 #define HAS_DIGIPOTSS (PIN_EXISTS(DIGIPOTSS))
423 425
 
424 426
 #endif //__PINS_H
425
-

+ 101
- 0
Marlin/pins_CNCONTROLS_11.h ファイルの表示

@@ -0,0 +1,101 @@
1
+/**
2
+ * CartesioV11 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 V11"
10
+
11
+//#define LARGE_FLASH true
12
+
13
+#define X_ENABLE_PIN          35
14
+#define X_STEP_PIN            34
15
+#define X_DIR_PIN             36
16
+#define X_MIN_PIN             43
17
+#define X_MAX_PIN             -1
18
+
19
+#define Y_ENABLE_PIN          38
20
+#define Y_STEP_PIN            37
21
+#define Y_DIR_PIN             39
22
+#define Y_MIN_PIN             45
23
+#define Y_MAX_PIN             -1
24
+
25
+#define Z_ENABLE_PIN          41
26
+#define Z_STEP_PIN            40
27
+#define Z_DIR_PIN             48
28
+#define Z_MIN_PIN             42
29
+#define Z_MAX_PIN             -1
30
+
31
+#define E0_ENABLE_PIN          3
32
+#define E0_STEP_PIN           29
33
+#define E0_DIR_PIN            28
34
+#define HEATER_0_PIN           5
35
+#define TEMP_0_PIN             0  // ANALOG INPUT !!
36
+
37
+#define E1_ENABLE_PIN         60
38
+#define E1_STEP_PIN           61
39
+#define E1_DIR_PIN            62
40
+#define HEATER_1_PIN          58
41
+#define TEMP_1_PIN             3  // 3 for tool2 -> 2 for chambertemp
42
+
43
+#define E2_ENABLE_PIN         16
44
+#define E2_STEP_PIN           15
45
+#define E2_DIR_PIN            14
46
+#define HEATER_2_PIN          64
47
+#define TEMP_2_PIN             2  // 9 for tool3 -> 2 for chambertemp
48
+
49
+#define E3_ENABLE_PIN         47
50
+#define E3_STEP_PIN           44
51
+#define E3_DIR_PIN            49
52
+#define HEATER_3_PIN          46
53
+#define TEMP_3_PIN            11  // 11 for tool4 -> 2 for chambertemp
54
+
55
+#define HEATER_BED_PIN         2
56
+#define TEMP_BED_PIN           1  // ANALOG INPUT !!
57
+
58
+// Tools
59
+
60
+//#define TOOL_0_PIN           4
61
+//#define TOOL_1_PIN          59
62
+//#define TOOL_2_PIN           8
63
+//#define TOOL_3_PIN          30
64
+//#define TOOL_PWM_PIN         7  // common PWM pin for all tools
65
+
66
+// Common I/O
67
+
68
+//#define TEMP_CHAMBER_PIN     2  // ANALOG INPUT !!
69
+//#define FIL_RUNOUT_PIN      -1
70
+//#define PWM_1_PIN           11
71
+//#define PWM_2_PIN           10
72
+//#define SPARE_IO            12
73
+//#define FAN_PIN              7  // common PWM pin for all tools
74
+
75
+// User interface
76
+#define BEEPER_PIN             6
77
+
78
+// Pins for DOGM SPI LCD Support
79
+#define DOGLCD_A0             26
80
+#define DOGLCD_CS             24
81
+#define DOGLCD_MOSI           -1
82
+#define DOGLCD_SCK            -1
83
+
84
+// The encoder and click button
85
+#define BTN_EN1               23
86
+#define BTN_EN2               25
87
+#define BTN_ENC               27
88
+
89
+// Hardware buttons for manual movement of XYZ
90
+#define SHIFT_OUT             19
91
+#define SHIFT_LD              18
92
+#define SHIFT_CLK             17
93
+
94
+//#define UI1                 31
95
+//#define UI2                 22
96
+
97
+// Other
98
+#define SDSS                  53
99
+#define SD_DETECT_PIN         13
100
+#define STAT_LED_BLUE         -1
101
+#define STAT_LED_RED          31

読み込み中…
キャンセル
保存