Browse Source

Adding support for the Tronxy and Zonestar LCD

Code borrowed and modified from erikkallen/Marlin_tronxy.
Changed the ANET_KEYPAD_LCD to zonestar, since it is the same device.
I kept a define for ANET_KEYPAD_LCD to enable ZONESTAR_LCD.
Dan Delaney 7 years ago
parent
commit
5249765508

+ 1
- 1
Marlin/Conditionals_LCD.h View File

42
 
42
 
43
     #define U8GLIB_ST7565_64128N
43
     #define U8GLIB_ST7565_64128N
44
 
44
 
45
-  #elif ENABLED(ANET_KEYPAD_LCD)
45
+  #elif ENABLED(ZONESTAR_LCD)
46
 
46
 
47
     #define REPRAPWORLD_KEYPAD
47
     #define REPRAPWORLD_KEYPAD
48
     #define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0
48
     #define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0

+ 4
- 2
Marlin/Configuration.h View File

1516
 //#define CARTESIO_UI
1516
 //#define CARTESIO_UI
1517
 
1517
 
1518
 //
1518
 //
1519
-// ANET_10 Controller supported displays.
1519
+// ANET and Tronxy Controller supported displays.
1520
 //
1520
 //
1521
-//#define ANET_KEYPAD_LCD         // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
1521
+//#define ZONESTAR_LCD            // Requires ADC_KEYPAD_PIN to be assigned to an analog pin.
1522
                                   // This LCD is known to be susceptible to electrical interference
1522
                                   // This LCD is known to be susceptible to electrical interference
1523
                                   // which scrambles the display.  Pressing any button clears it up.
1523
                                   // which scrambles the display.  Pressing any button clears it up.
1524
+                                  // This is a LCD2004 display with 5 analog buttons.
1525
+
1524
 //#define ANET_FULL_GRAPHICS_LCD  // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
1526
 //#define ANET_FULL_GRAPHICS_LCD  // Anet 128x64 full graphics lcd with rotary encoder as used on Anet A6
1525
                                   // A clone of the RepRapDiscount full graphics display but with
1527
                                   // A clone of the RepRapDiscount full graphics display but with
1526
                                   // different pins/wiring (see pins_ANET_10.h).
1528
                                   // different pins/wiring (see pins_ANET_10.h).

+ 2
- 2
Marlin/SanityCheck.h View File

1342
   #endif
1342
   #endif
1343
   #if ENABLED(REPRAPWORLD_KEYPAD) \
1343
   #if ENABLED(REPRAPWORLD_KEYPAD) \
1344
       && DISABLED(CARTESIO_UI) \
1344
       && DISABLED(CARTESIO_UI) \
1345
-      && DISABLED(ANET_KEYPAD_LCD)
1345
+      && DISABLED(ZONESTAR_LCD)
1346
     + 1
1346
     + 1
1347
   #endif
1347
   #endif
1348
   #if ENABLED(RIGIDBOT_PANEL)
1348
   #if ENABLED(RIGIDBOT_PANEL)
1378
   #if ENABLED(OLED_PANEL_TINYBOY2)
1378
   #if ENABLED(OLED_PANEL_TINYBOY2)
1379
     + 1
1379
     + 1
1380
   #endif
1380
   #endif
1381
-  #if ENABLED(ANET_KEYPAD_LCD)
1381
+  #if ENABLED(ZONESTAR_LCD)
1382
     + 1
1382
     + 1
1383
   #endif
1383
   #endif
1384
   , "Please select no more than one LCD controller option."
1384
   , "Please select no more than one LCD controller option."

+ 3
- 3
Marlin/pins_ANET_10.h View File

145
  * LCD / Controller
145
  * LCD / Controller
146
  *
146
  *
147
  * Only the following displays are supported:
147
  * Only the following displays are supported:
148
- *  ANET_KEYPAD_LCD
148
+ *  ZONESTAR_LCD
149
  *  ANET_FULL_GRAPHICS_LCD
149
  *  ANET_FULL_GRAPHICS_LCD
150
  *  REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
150
  *  REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
151
-*/
151
+ */
152
 
152
 
153
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
153
 #if ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)
154
   #define LCD_SDSS           28
154
   #define LCD_SDSS           28
209
  * ===================== LCD PINOUTS ==================================
209
  * ===================== LCD PINOUTS ==================================
210
  * ====================================================================
210
  * ====================================================================
211
  *
211
  *
212
- *   Anet V1.0 controller           | ANET_KEYPAD_LCD   | ANET_FULL_      | RepRapDiscount Full      | Thingiverse RepRap wiring
212
+ *   Anet V1.0 controller           | ZONESTAR_LCD      | ANET_FULL_      | RepRapDiscount Full      | Thingiverse RepRap wiring
213
  *   physical   logical   alt       |                   | GRAPHICS_LCD    | Graphics Display Wiring  | http://www.thingiverse
213
  *   physical   logical   alt       |                   | GRAPHICS_LCD    | Graphics Display Wiring  | http://www.thingiverse
214
  *     pin        pin     functions |                   |                 |                          | .com/thing:2103748
214
  *     pin        pin     functions |                   |                 |                          | .com/thing:2103748
215
  *------------------------------------------------------------------------------------------------------------------------
215
  *------------------------------------------------------------------------------------------------------------------------

+ 2
- 2
Marlin/pins_RAMPS.h View File

533
 
533
 
534
 #endif // ULTRA_LCD
534
 #endif // ULTRA_LCD
535
 
535
 
536
-#if ENABLED(ANET_KEYPAD_LCD)
536
+#if ENABLED(ZONESTAR_LCD)
537
   #define LCD_PINS_RS        64
537
   #define LCD_PINS_RS        64
538
   #define LCD_PINS_ENABLE    44
538
   #define LCD_PINS_ENABLE    44
539
   #define LCD_PINS_D4        63
539
   #define LCD_PINS_D4        63
545
   #define BTN_EN2            -1
545
   #define BTN_EN2            -1
546
   #define BTN_ENC            -1
546
   #define BTN_ENC            -1
547
   // pin 29 N/C
547
   // pin 29 N/C
548
-#endif // ANET_KEYPAD_LCD
548
+#endif // ZONESTAR_LCD

+ 15
- 1
Marlin/pins_SANGUINOLOLU_11.h View File

243
       #define ST7920_DELAY_3 DELAY_0_NOP
243
       #define ST7920_DELAY_3 DELAY_0_NOP
244
     #endif
244
     #endif
245
 
245
 
246
-  #else  // !LCD_I2C_PANELOLU2 && !LCD_FOR_MELZI
246
+  #elif ENABLED(ZONESTAR_LCD) // For the Tronxy Melzi boards
247
+
248
+    #define LCD_PINS_RS         28
249
+    #define LCD_PINS_ENABLE     29
250
+    #define LCD_PINS_D4         10
251
+    #define LCD_PINS_D5         11
252
+    #define LCD_PINS_D6         16
253
+    #define LCD_PINS_D7         17
254
+    #define ADC_KEYPAD_PIN       1
255
+
256
+    // Not used
257
+    #define BTN_EN1             -1
258
+    #define BTN_EN2             -1
259
+
260
+  #else  // !LCD_I2C_PANELOLU2 && !LCD_FOR_MELZI && !ZONESTAR_LCD
247
 
261
 
248
     #define BTN_ENC             16
262
     #define BTN_ENC             16
249
     #define LCD_SDSS            28 // Smart Controller SD card reader rather than the Melzi
263
     #define LCD_SDSS            28 // Smart Controller SD card reader rather than the Melzi

Loading…
Cancel
Save