From 5b270417ed86eca5a5aea4edb69ee167fba10607 Mon Sep 17 00:00:00 2001
From: Diederik van der Pant <djvdpant@gmail.com>
Date: Fri, 9 Jun 2017 14:17:47 +0200
Subject: [PATCH] added shift register pins for reprapworld keypad v1.1

I recently upgraded my Marlin to V1.1.x and decided to publish my fix to make marlin compile properly when #define board megatronics 2 in combination with #define reprapworld keypad v1.1. It was previously described in the comments of a closed pull request. MarlinFirmware#472. All the buttons on the keypad are now operational.
---
 Marlin/pins_MEGATRONICS_2.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Marlin/pins_MEGATRONICS_2.h b/Marlin/pins_MEGATRONICS_2.h
index 0cbb769453..6db1489bf9 100644
--- a/Marlin/pins_MEGATRONICS_2.h
+++ b/Marlin/pins_MEGATRONICS_2.h
@@ -131,6 +131,12 @@
 #define BTN_EN2            59
 #define BTN_ENC            43
 
+// Buttons that are attached using shift register of reprapworld keypad  v1.1
+#define SHIFT_CLK 63
+#define SHIFT_LD 42
+#define SHIFT_OUT 17
+#define SHIFT_EN 17
+
 //
 // M3/M4/M5 - Spindle/Laser Control
 //
-- 
GitLab