Browse Source

Merge pull request #7208 from thinkyhead/bf_lcd_for_melzi

LCD for Melzi support
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
41e0955c27
  1. 2
      Marlin/Conditionals_LCD.h
  2. 5
      Marlin/Configuration.h
  3. 3
      Marlin/SanityCheck.h
  4. 5
      Marlin/example_configurations/Anet/A6/Configuration.h
  5. 5
      Marlin/example_configurations/Anet/A8/Configuration.h
  6. 5
      Marlin/example_configurations/CL-260/Configuration.h
  7. 5
      Marlin/example_configurations/Cartesio/Configuration.h
  8. 5
      Marlin/example_configurations/Felix/Configuration.h
  9. 5
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  10. 5
      Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h
  11. 5
      Marlin/example_configurations/Hephestos/Configuration.h
  12. 5
      Marlin/example_configurations/Hephestos_2/Configuration.h
  13. 5
      Marlin/example_configurations/Infitary-i3-M508/Configuration.h
  14. 5
      Marlin/example_configurations/K8200/Configuration.h
  15. 5
      Marlin/example_configurations/K8400/Configuration.h
  16. 5
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  17. 5
      Marlin/example_configurations/M150/Configuration.h
  18. 5
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  19. 5
      Marlin/example_configurations/RigidBot/Configuration.h
  20. 5
      Marlin/example_configurations/SCARA/Configuration.h
  21. 5
      Marlin/example_configurations/TAZ4/Configuration.h
  22. 5
      Marlin/example_configurations/TinyBoy2/Configuration.h
  23. 5
      Marlin/example_configurations/WITBOX/Configuration.h
  24. 5
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  25. 5
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h
  26. 5
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h
  27. 5
      Marlin/example_configurations/delta/generic/Configuration.h
  28. 5
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  29. 5
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  30. 5
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  31. 5
      Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h
  32. 5
      Marlin/example_configurations/makibox/Configuration.h
  33. 5
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  34. 5
      Marlin/example_configurations/wt150/Configuration.h
  35. 27
      Marlin/pins_SANGUINOLOLU_11.h
  36. 2
      Marlin/ultralcd_impl_HD44780.h

2
Marlin/Conditionals_LCD.h

@ -120,7 +120,7 @@
#define ULTIMAKERCONTROLLER
#endif
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) || ENABLED(LCD_FOR_MELZI)
#define DOGLCD
#define U8GLIB_ST7920
#define REPRAP_DISCOUNT_SMART_CONTROLLER

5
Marlin/Configuration.h

@ -1402,6 +1402,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

3
Marlin/SanityCheck.h

@ -1086,6 +1086,9 @@ static_assert(1 >= 0
#if ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER) && DISABLED(BQ_LCD_SMART_CONTROLLER)
+ 1
#endif
#if ENABLED(LCD_FOR_MELZI)
+ 1
#endif
#if ENABLED(CARTESIO_UI)
+ 1
#endif

5
Marlin/example_configurations/Anet/A6/Configuration.h

@ -1560,6 +1560,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Anet/A8/Configuration.h

@ -1410,6 +1410,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/CL-260/Configuration.h

@ -1399,6 +1399,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Cartesio/Configuration.h

@ -1396,6 +1396,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Felix/Configuration.h

@ -1380,6 +1380,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Felix/DUAL/Configuration.h

@ -1380,6 +1380,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h

@ -1402,6 +1402,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Hephestos/Configuration.h

@ -1388,6 +1388,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Hephestos_2/Configuration.h

@ -1391,6 +1391,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/Infitary-i3-M508/Configuration.h

@ -1372,6 +1372,11 @@
//
//#define BQ_LCD_SMART_CONTROLLER
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/K8200/Configuration.h

@ -1430,6 +1430,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/K8400/Configuration.h

@ -1398,6 +1398,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/K8400/Dual-head/Configuration.h

@ -1398,6 +1398,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/M150/Configuration.h

@ -1425,6 +1425,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h

@ -1398,6 +1398,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/RigidBot/Configuration.h

@ -1398,6 +1398,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/SCARA/Configuration.h

@ -1410,6 +1410,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/TAZ4/Configuration.h

@ -1417,6 +1417,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/TinyBoy2/Configuration.h

@ -1454,6 +1454,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/WITBOX/Configuration.h

@ -1388,6 +1388,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/adafruit/ST7565/Configuration.h

@ -1398,6 +1398,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration.h

@ -1519,6 +1519,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration.h

@ -1520,6 +1520,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/generic/Configuration.h

@ -1509,6 +1509,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/kossel_mini/Configuration.h

@ -1512,6 +1512,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/kossel_pro/Configuration.h

@ -1517,6 +1517,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/delta/kossel_xl/Configuration.h

@ -1575,6 +1575,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h

@ -1414,6 +1414,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/makibox/Configuration.h

@ -1401,6 +1401,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/tvrrug/Round2/Configuration.h

@ -1393,6 +1393,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

5
Marlin/example_configurations/wt150/Configuration.h

@ -1404,6 +1404,11 @@
// A clone of the RepRapDiscount full graphics display but with
// different pins/wiring (see pins_ANET_10.h).
//
// LCD for Melzi Card with Graphical LCD
//
//#define LCD_FOR_MELZI
//
// CONTROLLER TYPE: I2C
//

27
Marlin/pins_SANGUINOLOLU_11.h

@ -209,16 +209,39 @@
#define BTN_EN2 10
#if ENABLED(LCD_I2C_PANELOLU2)
#if IS_MELZI
#define BTN_ENC 29
#define LCD_SDSS 30 // Panelolu2 SD card reader rather than the Melzi
#else
#define BTN_ENC 30
#endif
#else // !Panelolu2
#elif ENABLED(LCD_FOR_MELZI)
#define LCD_PINS_RS 17
#define LCD_PINS_ENABLE 16
#define LCD_PINS_D4 11
#define BTN_ENC 28
#define BTN_EN1 29
#define BTN_EN2 30
#ifndef ST7920_DELAY_1
#define ST7920_DELAY_1 DELAY_0_NOP
#endif
#ifndef ST7920_DELAY_3
#define ST7920_DELAY_2 DELAY_3_NOP
#endif
#ifndef ST7920_DELAY_3
#define ST7920_DELAY_3 DELAY_0_NOP
#endif
#else // !LCD_I2C_PANELOLU2 && !LCD_FOR_MELZI
#define BTN_ENC 16
#define LCD_SDSS 28 // Smart Controller SD card reader rather than the Melzi
#endif // !Panelolu2
#endif
#define SD_DETECT_PIN -1

2
Marlin/ultralcd_impl_HD44780.h

@ -1085,7 +1085,7 @@ static void lcd_implementation_status_screen() {
#if ENABLED(AUTO_BED_LEVELING_UBL)
/*
/**
* These are just basic data for the 20x4 LCD work that
* is coming up very soon.
* Soon this will morph into a map code.

Loading…
Cancel
Save