Browse Source

Merge pull request #1724 from Natealus/Development

Viki 2 Pins from Manual and Azteeg X3 Pro Endstop Reswap
Scott Lahteine 9 years ago
parent
commit
d738b7acdd
4 changed files with 105 additions and 19 deletions
  1. 24
    4
      Marlin/pins_AZTEEG_X3.h
  2. 38
    15
      Marlin/pins_AZTEEG_X3_PRO.h
  3. 23
    0
      Marlin/pins_PRINTRBOARD.h
  4. 20
    0
      Marlin/pins_RAMBO.h

+ 24
- 4
Marlin/pins_AZTEEG_X3.h View File

@@ -4,13 +4,33 @@
4 4
 
5 5
 #include "pins_RAMPS_13.h"
6 6
 
7
-#undef FAN_PIN
8 7
 #define FAN_PIN            9 // (Sprinter config)
9
-
10
-#undef HEATER_1_PIN
11 8
 #define HEATER_1_PIN       -1
12 9
 
13
-#ifdef TEMP_STAT_LEDS
10
+//LCD Pins//
11
+
12
+#if defined(VIKI2) || defined(miniVIKI)
13
+ #define BEEPER 33
14
+ // Pins for DOGM SPI LCD Support
15
+ #define DOGLCD_A0  31 
16
+ #define DOGLCD_CS  32 
17
+ #define LCD_SCREEN_ROT_180
18
+ 
19
+ //The encoder and click button 
20
+ #define BTN_EN1 22 
21
+ #define BTN_EN2 7
22
+ #define BTN_ENC 12  //the click switch
23
+ 
24
+ #define SDSS 53
25
+ #define SDCARDDETECT -1 // Pin 49 if using display sd interface   
26
+ 
27
+  #ifdef TEMP_STAT_LEDS
28
+   #define STAT_LED_RED 64
29
+   #define STAT_LED_BLUE 63
30
+  #endif
31
+#endif
32
+
33
+#elif define TEMP_STAT_LEDS
14 34
   #define STAT_LED_RED       6
15 35
   #define STAT_LED_BLUE     11
16 36
 #endif

+ 38
- 15
Marlin/pins_AZTEEG_X3_PRO.h View File

@@ -16,23 +16,23 @@
16 16
 //
17 17
 //This section is to swap the MIN and MAX pins because the X3 Pro comes with only
18 18
 //MIN endstops soldered onto the board. Delta code wants the homing endstops to be 
19
-//the MAX so I swapped them here. Comment them out with // if you want them original.
20
-//Note: I had to solder on the additional MAX Endstop pins to attach a Z-Probe 
21
-//endstop switch.
19
+//the MAX so I swapped them here.
22 20
 //
23
-#undef X_MIN_PIN
24
-#undef X_MAX_PIN
25
-#undef Y_MIN_PIN
26
-#undef Y_MAX_PIN
27
-#undef Z_MIN_PIN
28
-#undef Z_MAX_PIN
21
+ #ifdef DELTA
22
+  #undef X_MIN_PIN
23
+  #undef X_MAX_PIN
24
+  #undef Y_MIN_PIN
25
+  #undef Y_MAX_PIN
26
+  #undef Z_MIN_PIN
27
+  #undef Z_MAX_PIN
29 28
 
30
-#define X_MIN_PIN           2
31
-#define X_MAX_PIN           3
32
-#define Y_MIN_PIN          15
33
-#define Y_MAX_PIN          14
34
-#define Z_MIN_PIN          19
35
-#define Z_MAX_PIN          18
29
+  #define X_MIN_PIN           2
30
+  #define X_MAX_PIN           3
31
+  #define Y_MIN_PIN          15
32
+  #define Y_MAX_PIN          14
33
+  #define Z_MIN_PIN          19
34
+  #define Z_MAX_PIN          18
35
+ #endif
36 36
 //
37 37
 
38 38
 #define E2_STEP_PIN        23
@@ -88,3 +88,26 @@
88 88
     #endif
89 89
   #endif
90 90
 #endif
91
+
92
+//LCD Pins//
93
+
94
+#if defined(VIKI2) || defined(miniVIKI)
95
+ #define BEEPER 33
96
+ // Pins for DOGM SPI LCD Support
97
+ #define DOGLCD_A0  44
98
+ #define DOGLCD_CS  45
99
+ #define LCD_SCREEN_ROT_180
100
+ 
101
+ //The encoder and click button
102
+ #define BTN_EN1 22
103
+ #define BTN_EN2 7
104
+ #define BTN_ENC 39  //the click switch
105
+
106
+ #define SDSS 53
107
+ #define SDCARDDETECT 49
108
+ 
109
+ #define KILL_PIN 31
110
+ 
111
+ #define STAT_LED_RED       32
112
+ #define STAT_LED_BLUE      35
113
+#endif

+ 23
- 0
Marlin/pins_PRINTRBOARD.h View File

@@ -59,6 +59,8 @@
59 59
 #define TEMP_1_PIN         -1
60 60
 #define TEMP_2_PIN         -1
61 61
 
62
+////LCD Pin Setup////
63
+
62 64
 #define SDPOWER            -1
63 65
 #define SDSS                8
64 66
 #define LED_PIN            -1
@@ -86,3 +88,24 @@
86 88
   //not connected to a pin
87 89
   #define SDCARDDETECT -1    
88 90
 #endif // ULTRA_LCD && NEWPANEL
91
+
92
+#if defined(VIKI2) || defined(miniVIKI)
93
+ #define BEEPER 32 //FastIO
94
+ // Pins for DOGM SPI LCD Support
95
+ #define DOGLCD_A0  42 //Non-FastIO
96
+ #define DOGLCD_CS  43 //Non-FastIO
97
+ #define LCD_SCREEN_ROT_180
98
+ 
99
+ //The encoder and click button (FastIO Pins)
100
+ #define BTN_EN1 26 
101
+ #define BTN_EN2 27
102
+ #define BTN_ENC 47  //the click switch
103
+
104
+ #define SDSS 45
105
+ #define SDCARDDETECT -1 // FastIO (Manual says 72 I'm not certain cause I can't test) 
106
+
107
+ #ifdef TEMP_STAT_LEDS
108
+  #define STAT_LED_RED      12 //Non-FastIO
109
+  #define STAT_LED_BLUE     10 //Non-FastIO
110
+ #endif  
111
+#endif

+ 20
- 0
Marlin/pins_RAMBO.h View File

@@ -160,6 +160,26 @@
160 160
 
161 161
 #endif // ULTRA_LCD
162 162
 
163
+#if defined(VIKI2) || defined(miniVIKI)
164
+ #define BEEPER 44
165
+ // Pins for DOGM SPI LCD Support
166
+ #define DOGLCD_A0  70 
167
+ #define DOGLCD_CS  71 
168
+ #define LCD_SCREEN_ROT_180
169
+  
170
+ //The encoder and click button 
171
+ #define BTN_EN1 85 
172
+ #define BTN_EN2 84
173
+ #define BTN_ENC 83  //the click switch
174
+
175
+ #define SDCARDDETECT -1 // Pin 72 if using easy adapter board   
176
+
177
+  #ifdef TEMP_STAT_LEDS
178
+   #define STAT_LED_RED      22
179
+   #define STAT_LED_BLUE     32 
180
+  #endif
181
+#endif // VIKI2/miniVIKI
182
+
163 183
 #ifdef FILAMENT_SENSOR
164 184
   //Filip added pin for Filament sensor analog input 
165 185
   #define FILWIDTH_PIN        3

Loading…
Cancel
Save