Explorar el Código

Merge pull request #8243 from Augustus22/kkersey/anet-lcd-ramps

[1.1] Add Anet Keypad LCD pins for RAMPS
Scott Lahteine hace 7 años
padre
commit
4388719c5d
No account linked to committer's email address
Se han modificado 3 ficheros con 15 adiciones y 1 borrados
  1. 1
    0
      Marlin/Conditionals_LCD.h
  2. 0
    1
      Marlin/pins_ANET_10.h
  3. 14
    0
      Marlin/pins_RAMPS.h

+ 1
- 0
Marlin/Conditionals_LCD.h Ver fichero

@@ -53,6 +53,7 @@
53 53
     // this helps to implement ADC_KEYPAD menus
54 54
     #define ENCODER_PULSES_PER_STEP 1
55 55
     #define ENCODER_STEPS_PER_MENU_ITEM 1
56
+    #define ENCODER_FEEDRATE_DEADZONE 2
56 57
     #define REVERSE_MENU_DIRECTION
57 58
 
58 59
   #elif ENABLED(ANET_FULL_GRAPHICS_LCD)

+ 0
- 1
Marlin/pins_ANET_10.h Ver fichero

@@ -166,7 +166,6 @@
166 166
     #define BTN_EN2          -1
167 167
     #define BTN_ENC          -1
168 168
     #define ADC_KEYPAD_PIN    1
169
-    #define ENCODER_FEEDRATE_DEADZONE 2
170 169
   #elif ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(ANET_FULL_GRAPHICS_LCD)
171 170
     // Pin definitions for the Anet A6 Full Graphics display and the RepRapDiscount Full Graphics
172 171
     // display using an adapter board  // https://go.aisler.net/benlye/anet-lcd-adapter/pcb

+ 14
- 0
Marlin/pins_RAMPS.h Ver fichero

@@ -483,3 +483,17 @@
483 483
   #endif // NEWPANEL
484 484
 
485 485
 #endif // ULTRA_LCD
486
+
487
+#if ENABLED(ANET_KEYPAD_LCD)
488
+  #define LCD_PINS_RS        64
489
+  #define LCD_PINS_ENABLE    44
490
+  #define LCD_PINS_D4        63
491
+  #define LCD_PINS_D5        40
492
+  #define LCD_PINS_D6        42
493
+  #define LCD_PINS_D7        65
494
+  #define ADC_KEYPAD_PIN     12
495
+  #define BTN_EN1            -1
496
+  #define BTN_EN2            -1
497
+  #define BTN_ENC            -1
498
+  // pin 29 N/C
499
+#endif // ANET_KEYPAD_LCD

Loading…
Cancelar
Guardar