Parcourir la source

Patches to prepare REPRAPWORLD_GRAPHICAL_LCD

Scott Lahteine il y a 9 ans
Parent
révision
0c0a63322b
5 fichiers modifiés avec 54 ajouts et 78 suppressions
  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 Voir le fichier

118
     #define REPRAP_DISCOUNT_SMART_CONTROLLER
118
     #define REPRAP_DISCOUNT_SMART_CONTROLLER
119
   #endif
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
     #define ULTIPANEL
126
     #define ULTIPANEL
123
     #define NEWPANEL
127
     #define NEWPANEL
124
   #endif
128
   #endif
130
     #define NEWPANEL
134
     #define NEWPANEL
131
   #endif
135
   #endif
132
 
136
 
133
-
134
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
137
   #if ENABLED(REPRAPWORLD_GRAPHICAL_LCD)
135
     #define DOGLCD
138
     #define DOGLCD
136
     #define U8GLIB_ST7920
139
     #define U8GLIB_ST7920
137
     #define ULTIPANEL
140
     #define ULTIPANEL
141
+    #define NEWPANEL
138
   #endif
142
   #endif
139
 
143
 
140
   /**
144
   /**

+ 0
- 1
Marlin/Configuration.h Voir le fichier

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

+ 9
- 27
Marlin/pins_MEGATRONICS_3.h Voir le fichier

106
 
106
 
107
 #define BEEPER_PIN 61
107
 #define BEEPER_PIN 61
108
 
108
 
109
-
110
-
111
-
112
 #if ENABLED(DOGLCD)
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
 #else
118
 #else
119
+
129
   #define LCD_PINS_RS 32
120
   #define LCD_PINS_RS 32
130
   #define LCD_PINS_ENABLE 31
121
   #define LCD_PINS_ENABLE 31
131
   #define LCD_PINS_D4 14
122
   #define LCD_PINS_D4 14
137
   #define SHIFT_LD 35
128
   #define SHIFT_LD 35
138
   #define SHIFT_OUT 34
129
   #define SHIFT_OUT 34
139
   #define SHIFT_EN 44
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
   #define SD_DETECT_PIN 56 // Megatronics v3.1 only
132
   #define SD_DETECT_PIN 56 // Megatronics v3.1 only
150
-#endif
151
 
133
 
134
+#endif
152
 
135
 
153
 // Buttons are directly attached using keypad
136
 // Buttons are directly attached using keypad
154
 #define BTN_EN1 44
137
 #define BTN_EN1 44
155
 #define BTN_EN2 45
138
 #define BTN_EN2 45
156
-#define BTN_ENC 33 // the click
139
+#define BTN_ENC 33
157
 
140
 
158
 #define BLEN_C 2
141
 #define BLEN_C 2
159
 #define BLEN_B 1
142
 #define BLEN_B 1
160
 #define BLEN_A 0
143
 #define BLEN_A 0
161
-

+ 28
- 30
Marlin/pins_MINITRONICS.h Voir le fichier

76
 
76
 
77
 #define BEEPER_PIN -1
77
 #define BEEPER_PIN -1
78
 
78
 
79
-
80
-
81
 #if ENABLED(DOGLCD)
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
 #else
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
 #endif
113
 #endif

+ 11
- 18
Marlin/pins_RAMPS_14.h Voir le fichier

139
   #define SLED_PIN           -1
139
   #define SLED_PIN           -1
140
 #endif
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
     #define LCD_PINS_RS 40
149
     #define LCD_PINS_RS 40
162
     #define LCD_PINS_ENABLE 42
150
     #define LCD_PINS_ENABLE 42
163
     #define LCD_PINS_D4 65
151
     #define LCD_PINS_D4 65
198
         #define LCD_PIN_BL 39
186
         #define LCD_PIN_BL 39
199
       #endif
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
     #elif ENABLED(LCD_I2C_PANELOLU2)
194
     #elif ENABLED(LCD_I2C_PANELOLU2)
202
       #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
195
       #define BTN_EN1 47  // reverse if the encoder turns the wrong way.
203
       #define BTN_EN2 43
196
       #define BTN_EN2 43

Chargement…
Annuler
Enregistrer