Browse Source

Fix LCD pins for Printrboard v1

Scott Lahteine 6 years ago
parent
commit
a2c013c8c7
1 changed files with 27 additions and 27 deletions
  1. 27
    27
      Marlin/pins_PRINTRBOARD.h

+ 27
- 27
Marlin/pins_PRINTRBOARD.h View File

@@ -130,18 +130,6 @@
130 130
 //
131 131
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
132 132
 
133
-  // LCD Pins
134
-  #if ENABLED(LCD_I2C_PANELOLU2)
135
-    #define BTN_EN1         3   // D3 RX1   JP2-7
136
-    #define BTN_EN2         2   // D2 TX1   JP2-5
137
-    #define BTN_ENC        41   // F3       JP2-4
138
-    #define SDSS           38   // F0       B-THERM connector - use SD card on Panelolu2
139
-  #else
140
-    #define BTN_EN1        10   // C0       JP11-12
141
-    #define BTN_EN2        11   // C1       JP11-13
142
-    #define BTN_ENC        12   // C2       JP11-14
143
-  #endif
144
-
145 133
   #define LCD_PINS_RS       9   // E1       JP11-11
146 134
   #define LCD_PINS_ENABLE   8   // E0       JP11-10
147 135
   #define LCD_PINS_D4       7   // D7       JP11-8
@@ -149,23 +137,35 @@
149 137
   #define LCD_PINS_D6       5   // D5       JP11-6
150 138
   #define LCD_PINS_D7       4   // D4       JP11-5
151 139
 
152
-#endif // ULTRA_LCD && NEWPANEL
140
+  #if ENABLED(VIKI2) || ENABLED(miniVIKI)
141
+    #define BEEPER_PIN      8   // E0       JP11-10
153 142
 
154
-#if ENABLED(VIKI2) || ENABLED(miniVIKI)
155
-  #define BEEPER_PIN        8   // E0       JP11-10
156
-  // Pins for DOGM SPI LCD Support
157
-  #define DOGLCD_A0        40   // F2       JP2-2
158
-  #define DOGLCD_CS        41   // F3       JP2-4
159
-  #define LCD_SCREEN_ROT_180
143
+    #define DOGLCD_A0      40   // F2       JP2-2
144
+    #define DOGLCD_CS      41   // F3       JP2-4
145
+    #define LCD_SCREEN_ROT_180
160 146
 
161
-  // The encoder and click button
162
-  #define BTN_EN1           2   // D2 TX1   JP2-5
163
-  #define BTN_EN2           3   // D3 RX1   JP2-7
164
-  #define BTN_ENC          45   // F7 TDI   JP2-12
147
+    #define BTN_EN1         2   // D2 TX1   JP2-5
148
+    #define BTN_EN2         3   // D3 RX1   JP2-7
149
+    #define BTN_ENC        45   // F7 TDI   JP2-12
165 150
 
166
-  #define SDSS             43   // F5 TMS   JP2-8
151
+    #define SDSS           43   // F5 TMS   JP2-8
167 152
 
168
-  #define STAT_LED_RED_PIN  12  // C2       JP11-14
169
-  #define STAT_LED_BLUE_PIN 10  // C0       JP11-12
153
+    #define STAT_LED_RED_PIN  12  // C2       JP11-14
154
+    #define STAT_LED_BLUE_PIN 10  // C0       JP11-12
170 155
 
171
-#endif
156
+  #elif ENABLED(LCD_I2C_PANELOLU2)
157
+
158
+    #define BTN_EN1         3   // D3 RX1   JP2-7
159
+    #define BTN_EN2         2   // D2 TX1   JP2-5
160
+    #define BTN_ENC        41   // F3       JP2-4
161
+    #define SDSS           38   // F0       B-THERM connector - use SD card on Panelolu2
162
+
163
+  #else
164
+
165
+    #define BTN_EN1        10   // C0       JP11-12
166
+    #define BTN_EN2        11   // C1       JP11-13
167
+    #define BTN_ENC        12   // C2       JP11-14
168
+
169
+  #endif
170
+
171
+#endif // ULTRA_LCD && NEWPANEL

Loading…
Cancel
Save