Преглед на файлове

Patches to prepare REPRAPWORLD_GRAPHICAL_LCD

Scott Lahteine преди 7 години
родител
ревизия
0c0a63322b
променени са 5 файла, в които са добавени 54 реда и са изтрити 78 реда
  1. 6
    2
      Marlin/Conditionals.h
  2. 0
    1
      Marlin/Configuration.h
  3. 9
    27
      Marlin/pins_MEGATRONICS_3.h
  4. 28
    30
      Marlin/pins_MINITRONICS.h
  5. 11
    18
      Marlin/pins_RAMPS_14.h

+ 6
- 2
Marlin/Conditionals.h Целия файл

@@ -118,7 +118,11 @@
118 118
     #define REPRAP_DISCOUNT_SMART_CONTROLLER
119 119
   #endif
120 120
 
121
-  #if ENABLED(ULTIMAKERCONTROLLER) || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) || ENABLED(G3D_PANEL) || ENABLED(RIGIDBOT_PANEL) || ENABLED(REPRAPWORLD_KEYPAD)
121
+  #if ENABLED(ULTIMAKERCONTROLLER)              \
122
+   || ENABLED(REPRAP_DISCOUNT_SMART_CONTROLLER) \
123
+   || ENABLED(G3D_PANEL)                        \
124
+   || ENABLED(RIGIDBOT_PANEL)                   \
125
+   || ENABLED(REPRAPWORLD_KEYPAD)
122 126
     #define ULTIPANEL
123 127
     #define NEWPANEL
124 128
   #endif
@@ -130,11 +134,11 @@
130 134
     #define NEWPANEL
131 135
   #endif
132 136
 
133
-
134 137
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
135 138
     #define DOGLCD
136 139
     #define U8GLIB_ST7920
137 140
     #define ULTIPANEL
141
+    #define NEWPANEL
138 142
   #endif
139 143
 
140 144
   /**

+ 0
- 1
Marlin/Configuration.h Целия файл

@@ -1124,7 +1124,6 @@
1124 1124
 //
1125 1125
 //#define REPRAPWORLD_GRAPHICAL_LCD
1126 1126
 
1127
-
1128 1127
 //
1129 1128
 // Activate one of these if you have a Panucatt Devices
1130 1129
 // Viki 2.0 or mini Viki with Graphic LCD

+ 9
- 27
Marlin/pins_MEGATRONICS_3.h Целия файл

@@ -106,26 +106,17 @@
106 106
 
107 107
 #define BEEPER_PIN 61
108 108
 
109
-
110
-
111
-
112 109
 #if ENABLED(DOGLCD)
113 110
 
114
-    #if ENABLED(U8GLIB_ST7920)
115
-    
116
-        #define LCD_PINS_RS     56 //CS chip select /SS chip slave select
117
-        #define LCD_PINS_ENABLE 51 //SID (MOSI)
118
-        #define LCD_PINS_D4     52 //SCK (CLK) clock     
119
-
120
-        #define BTN_EN1             44
121
-        #define BTN_EN2             45
122
-        #define BTN_ENC             33
123
-
124
-        
125
-        #define SD_DETECT_PIN 35
126
-    #endif
111
+  #if ENABLED(U8GLIB_ST7920)
112
+    #define LCD_PINS_RS     56 //CS chip select /SS chip slave select
113
+    #define LCD_PINS_ENABLE 51 //SID (MOSI)
114
+    #define LCD_PINS_D4     52 //SCK (CLK) clock
115
+    #define SD_DETECT_PIN 35
116
+  #endif
127 117
 
128 118
 #else
119
+
129 120
   #define LCD_PINS_RS 32
130 121
   #define LCD_PINS_ENABLE 31
131 122
   #define LCD_PINS_D4 14
@@ -137,25 +128,16 @@
137 128
   #define SHIFT_LD 35
138 129
   #define SHIFT_OUT 34
139 130
   #define SHIFT_EN 44
140
-  //buttons are directly attached using keypad
141
-  #define BTN_EN1 44
142
-  #define BTN_EN2 45
143
-  #define BTN_ENC 33 //the click
144
-
145
-  #define BLEN_C 2
146
-  #define BLEN_B 1
147
-  #define BLEN_A 0
148 131
 
149 132
   #define SD_DETECT_PIN 56 // Megatronics v3.1 only
150
-#endif
151 133
 
134
+#endif
152 135
 
153 136
 // Buttons are directly attached using keypad
154 137
 #define BTN_EN1 44
155 138
 #define BTN_EN2 45
156
-#define BTN_ENC 33 // the click
139
+#define BTN_ENC 33
157 140
 
158 141
 #define BLEN_C 2
159 142
 #define BLEN_B 1
160 143
 #define BLEN_A 0
161
-

+ 28
- 30
Marlin/pins_MINITRONICS.h Целия файл

@@ -76,40 +76,38 @@
76 76
 
77 77
 #define BEEPER_PIN -1
78 78
 
79
-
80
-
81 79
 #if ENABLED(DOGLCD)
82 80
 
83
-    #if ENABLED(U8GLIB_ST7920)
84
-    
85
-        #define LCD_PINS_RS     15 //CS chip select /SS chip slave select
86
-        #define LCD_PINS_ENABLE 11 //SID (MOSI)
87
-        #define LCD_PINS_D4     10 //SCK (CLK) clock     
81
+  #if ENABLED(U8GLIB_ST7920)
82
+    #define LCD_PINS_RS     15 //CS chip select /SS chip slave select
83
+    #define LCD_PINS_ENABLE 11 //SID (MOSI)
84
+    #define LCD_PINS_D4     10 //SCK (CLK) clock     
88 85
 
89
-        #define BTN_EN1             18
90
-        #define BTN_EN2             17
91
-        #define BTN_ENC             25
86
+    #define BTN_EN1 18
87
+    #define BTN_EN2 17
88
+    #define BTN_ENC 25
92 89
 
93
-        
94
-        #define SD_DETECT_PIN 30
95
-    #endif
90
+    #define SD_DETECT_PIN 30
91
+  #endif
96 92
 
97 93
 #else
98
-#define LCD_PINS_RS -1
99
-#define LCD_PINS_ENABLE -1
100
-#define LCD_PINS_D4 -1
101
-#define LCD_PINS_D5 -1
102
-#define LCD_PINS_D6 -1
103
-#define LCD_PINS_D7 -1
104
-
105
-// Buttons are directly attached using keypad
106
-#define BTN_EN1 -1
107
-#define BTN_EN2 -1
108
-#define BTN_ENC -1 // the click
109
-
110
-#define BLEN_C 2
111
-#define BLEN_B 1
112
-#define BLEN_A 0
113
-
114
-#define SD_DETECT_PIN -1  // Minitronics doesn't use this
94
+
95
+  #define LCD_PINS_RS -1
96
+  #define LCD_PINS_ENABLE -1
97
+  #define LCD_PINS_D4 -1
98
+  #define LCD_PINS_D5 -1
99
+  #define LCD_PINS_D6 -1
100
+  #define LCD_PINS_D7 -1
101
+
102
+  // Buttons are directly attached using keypad
103
+  #define BTN_EN1 -1
104
+  #define BTN_EN2 -1
105
+  #define BTN_ENC -1
106
+
107
+  #define BLEN_C 2
108
+  #define BLEN_B 1
109
+  #define BLEN_A 0
110
+
111
+  #define SD_DETECT_PIN -1  // Minitronics doesn't use this
112
+
115 113
 #endif

+ 11
- 18
Marlin/pins_RAMPS_14.h Целия файл

@@ -139,25 +139,13 @@
139 139
   #define SLED_PIN           -1
140 140
 #endif
141 141
 
142
+#if ENABLED(ULTRA_LCD)
142 143
 
143
-
144
-#if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
145
-
146
-
147
-  #define LCD_PINS_RS     49 //CS chip select /SS chip slave select
148
-  #define LCD_PINS_ENABLE 51 //SID (MOSI)
149
-  #define LCD_PINS_D4     52 //SCK (CLK) clock     
150
-
151
-  #define BTN_EN1             64
152
-  #define BTN_EN2             59
153
-  #define BTN_ENC             63
154
-
155
-  
156
-  #define SD_DETECT_PIN 42
157
-
158
-#elif ENABLED(ULTRA_LCD)
159
-
160
-  #if ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
144
+  #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
145
+    #define LCD_PINS_RS     49 //CS chip select /SS chip slave select
146
+    #define LCD_PINS_ENABLE 51 //SID (MOSI)
147
+    #define LCD_PINS_D4     52 //SCK (CLK) clock
148
+  #elif ENABLED(NEWPANEL) && ENABLED(PANEL_ONE)
161 149
     #define LCD_PINS_RS 40
162 150
     #define LCD_PINS_ENABLE 42
163 151
     #define LCD_PINS_D4 65
@@ -198,6 +186,11 @@
198 186
         #define LCD_PIN_BL 39
199 187
       #endif
200 188
 
189
+    #elif ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
190
+      #define BTN_EN1 64
191
+      #define BTN_EN2 59
192
+      #define BTN_ENC 63
193
+      #define SD_DETECT_PIN 42
201 194
     #elif ENABLED(LCD_I2C_PANELOLU2)
202 195
       #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
203 196
       #define BTN_EN2 43

Loading…
Отказ
Запис