Преглед изворни кода

Fix pins for RAMBO plus VIKI

Scott Lahteine пре 9 година
родитељ
комит
374ae6c099
1 измењених фајлова са 29 додато и 28 уклоњено
  1. 29
    28
      Marlin/pins_RAMBO.h

+ 29
- 28
Marlin/pins_RAMBO.h Прегледај датотеку

114
 
114
 
115
   #if ENABLED(NEWPANEL)
115
   #if ENABLED(NEWPANEL)
116
 
116
 
117
-    // Beeper on AUX-4
118
-    #define BEEPER_PIN 79
119
-
120
     #define LCD_PINS_RS 70
117
     #define LCD_PINS_RS 70
121
     #define LCD_PINS_ENABLE 71
118
     #define LCD_PINS_ENABLE 71
122
     #define LCD_PINS_D4 72
119
     #define LCD_PINS_D4 72
124
     #define LCD_PINS_D6 74
121
     #define LCD_PINS_D6 74
125
     #define LCD_PINS_D7 75
122
     #define LCD_PINS_D7 75
126
 
123
 
127
-    //buttons are directly attached using AUX-2
128
-    #define BTN_EN1 76
129
-    #define BTN_EN2 77
130
-    #define BTN_ENC 78
124
+    #if ENABLED(VIKI2) || ENABLED(miniVIKI)
125
+      #define BEEPER_PIN 44
126
+
127
+      #define DOGLCD_A0  70
128
+      #define DOGLCD_CS  71
129
+      #define LCD_SCREEN_ROT_180
130
+
131
+      #define BTN_EN1 85
132
+      #define BTN_EN2 84
133
+      #define BTN_ENC 83
134
+
135
+      #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
136
+
137
+      #if ENABLED(TEMP_STAT_LEDS)
138
+        #define STAT_LED_RED      22
139
+        #define STAT_LED_BLUE     32
140
+      #endif
131
 
141
 
132
-    #define SD_DETECT_PIN 81 // Ramps doesn't use this
142
+    #else
143
+
144
+      #define BEEPER_PIN 79 // AUX-4
145
+
146
+      // AUX-2
147
+      #define BTN_EN1 76
148
+      #define BTN_EN2 77
149
+      #define BTN_ENC 78
150
+
151
+      #define SD_DETECT_PIN 81
152
+
153
+    #endif // VIKI2/miniVIKI
133
 
154
 
134
   #else //!NEWPANEL - old style panel with shift register
155
   #else //!NEWPANEL - old style panel with shift register
135
 
156
 
154
 
175
 
155
 #endif // ULTRA_LCD
176
 #endif // ULTRA_LCD
156
 
177
 
157
-#if ENABLED(VIKI2) || ENABLED(miniVIKI)
158
-  #define BEEPER_PIN 44
159
-  // Pins for DOGM SPI LCD Support
160
-  #define DOGLCD_A0  70
161
-  #define DOGLCD_CS  71
162
-  #define LCD_SCREEN_ROT_180
163
-
164
-  //The encoder and click button
165
-  #define BTN_EN1 85
166
-  #define BTN_EN2 84
167
-  #define BTN_ENC 83
168
-
169
-  #define SD_DETECT_PIN -1 // Pin 72 if using easy adapter board
170
-
171
-  #if ENABLED(TEMP_STAT_LEDS)
172
-    #define STAT_LED_RED      22
173
-    #define STAT_LED_BLUE     32
174
-  #endif
175
-#endif // VIKI2/miniVIKI
176
-

Loading…
Откажи
Сачувај