Procházet zdrojové kódy

Provide a SERVO0_PIN for non-standard LCD

Scott Lahteine před 7 roky
rodič
revize
b2a48f1a04
1 změnil soubory, kde provedl 21 přidání a 19 odebrání
  1. 21
    19
      Marlin/src/pins/pins_ANET_10.h

+ 21
- 19
Marlin/src/pins/pins_ANET_10.h Zobrazit soubor

@@ -155,36 +155,38 @@
155 155
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
156 156
   #define LCD_SDSS           28
157 157
   #if ENABLED(ADC_KEYPAD)
158
-    #define SERVO0_PIN         27 // free for BLTouch/3D-Touch
159
-    #define LCD_PINS_RS        28
160
-    #define LCD_PINS_ENABLE    29
161
-    #define LCD_PINS_D4        10
162
-    #define LCD_PINS_D5        11
163
-    #define LCD_PINS_D6        16
164
-    #define LCD_PINS_D7        17
165
-    #define BTN_EN1            -1
166
-    #define BTN_EN2            -1
167
-    #define BTN_ENC            -1
168
-    #define ADC_KEYPAD_PIN      1
158
+    #define SERVO0_PIN       27 // free for BLTouch/3D-Touch
159
+    #define LCD_PINS_RS      28
160
+    #define LCD_PINS_ENABLE  29
161
+    #define LCD_PINS_D4      10
162
+    #define LCD_PINS_D5      11
163
+    #define LCD_PINS_D6      16
164
+    #define LCD_PINS_D7      17
165
+    #define BTN_EN1          -1
166
+    #define BTN_EN2          -1
167
+    #define BTN_ENC          -1
168
+    #define ADC_KEYPAD_PIN    1
169 169
     #define ENCODER_FEEDRATE_DEADZONE 2
170 170
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
171 171
     // Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
172 172
     // display using an adapter board  // https://go.aisler.net/benlye/anet-lcd-adapter/pcb
173 173
     // See below for alternative pin definitions for use with https://www.thingiverse.com/thing:2103748
174
-    #define SERVO0_PIN         29 // free for BLTouch/3D-Touch
175
-    #define BEEPER_PIN         17
176
-    #define LCD_PINS_RS        27
177
-    #define LCD_PINS_ENABLE    28
178
-    #define LCD_PINS_D4        30
179
-    #define BTN_EN1            11
180
-    #define BTN_EN2            10
181
-    #define BTN_ENC            16
174
+    #define SERVO0_PIN       29 // free for BLTouch/3D-Touch
175
+    #define BEEPER_PIN       17
176
+    #define LCD_PINS_RS      27
177
+    #define LCD_PINS_ENABLE  28
178
+    #define LCD_PINS_D4      30
179
+    #define BTN_EN1          11
180
+    #define BTN_EN2          10
181
+    #define BTN_ENC          16
182 182
     #define ST7920_DELAY_1 DELAY_0_NOP
183 183
     #define ST7920_DELAY_2 DELAY_1_NOP
184 184
     #define ST7920_DELAY_3 DELAY_2_NOP
185 185
     #define STD_ENCODER_PULSES_PER_STEP 4
186 186
     #define STD_ENCODER_STEPS_PER_MENU_ITEM 1
187 187
   #endif
188
+#else
189
+  #define SERVO0_PIN         27
188 190
 #endif  // ULTRA_LCD && NEWPANEL
189 191
 
190 192
 /**

Loading…
Zrušit
Uložit