Browse Source

Merge MegaController & MINIPANEL (PR#2508)

Richard Wackerbarth 10 years ago
parent
commit
0a7f2a8be7

+ 8
- 0
Marlin/Conditionals.h View File

@@ -75,6 +75,14 @@
75 75
     #define NEWPANEL
76 76
   #endif
77 77
 
78
+  #ifdef MINIPANEL
79
+   #define DOGLCD
80
+   #define SDSUPPORT
81
+   #define ULTIPANEL
82
+   #define NEWPANEL
83
+   #define DEFAULT_LCD_CONTRAST 17
84
+  #endif
85
+
78 86
   /**
79 87
    * I2C PANELS
80 88
    */

+ 4
- 0
Marlin/Configuration.h View File

@@ -694,6 +694,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
694 694
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
695 695
 //#define RA_CONTROL_PANEL
696 696
 
697
+// The MakerLab Mini Panel with graphic controller and SD support
698
+// http://reprap.org/wiki/Mini_panel
699
+// #define MINIPANEL
700
+
697 701
 /**
698 702
  * I2C Panels
699 703
  */

+ 1
- 0
Marlin/boards.h View File

@@ -49,6 +49,7 @@
49 49
 #define BOARD_OMCA              91   // Final OMCA board
50 50
 #define BOARD_RAMBO             301  // Rambo
51 51
 #define BOARD_MINIRAMBO         302  // Mini-Rambo
52
+#define BOARD_MEGACONTROLLER    310  // Mega controller
52 53
 #define BOARD_ELEFU_3           21   // Elefu Ra Board (v3)
53 54
 #define BOARD_5DPRINT           88   // 5DPrint D8 Driver Board
54 55
 #define BOARD_LEAPFROG          999  // Leapfrog

+ 4
- 0
Marlin/configurator/config/Configuration.h View File

@@ -694,6 +694,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
694 694
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
695 695
 //#define RA_CONTROL_PANEL
696 696
 
697
+// The MakerLab Mini Panel with graphic controller and SD support
698
+// http://reprap.org/wiki/Mini_panel
699
+// #define MINIPANEL
700
+
697 701
 /**
698 702
  * I2C Panels
699 703
  */

+ 6
- 2
Marlin/dogm_lcd_implementation.h View File

@@ -128,6 +128,9 @@
128 128
 #elif defined U8GLIB_SSD1306
129 129
   // Generic support for SSD1306 OLED I2C LCDs
130 130
   U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);
131
+#elif defined(MINIPANEL)
132
+  // The MINIPanel display
133
+  U8GLIB_MINI12864 u8g(DOGLCD_CS, DOGLCD_A0);
131 134
 #else
132 135
   // for regular DOGM128 display with HW-SPI
133 136
   U8GLIB_DOGM128 u8g(DOGLCD_CS, DOGLCD_A0);  // HW-SPI Com: CS, A0
@@ -201,8 +204,9 @@ static void lcd_implementation_init() {
201 204
     pinMode(LCD_PIN_RESET, OUTPUT);           
202 205
     digitalWrite(LCD_PIN_RESET, HIGH);
203 206
   #endif
204
-
205
-  u8g.setContrast(lcd_contrast);	
207
+  #ifndef MINIPANEL//setContrast not working for Mini Panel
208
+    u8g.setContrast(lcd_contrast);	
209
+  #endif
206 210
 	// FIXME: remove this workaround
207 211
   // Uncomment this if you have the first generation (V1.10) of STBs board
208 212
   // pinMode(17, OUTPUT);	// Enable LCD backlight

+ 4
- 0
Marlin/example_configurations/Felix/Configuration.h View File

@@ -677,6 +677,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
677 677
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
678 678
 //#define RA_CONTROL_PANEL
679 679
 
680
+// The MakerLab Mini Panel with graphic controller and SD support
681
+// http://reprap.org/wiki/Mini_panel
682
+// #define MINIPANEL
683
+
680 684
 /**
681 685
  * I2C Panels
682 686
  */

+ 4
- 0
Marlin/example_configurations/Felix/Configuration_DUAL.h View File

@@ -638,6 +638,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
638 638
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
639 639
 //#define RA_CONTROL_PANEL
640 640
 
641
+// The MakerLab Mini Panel with graphic controller and SD support
642
+// http://reprap.org/wiki/Mini_panel
643
+// #define MINIPANEL
644
+
641 645
 /**
642 646
  * I2C Panels
643 647
  */

+ 4
- 0
Marlin/example_configurations/Hephestos/Configuration.h View File

@@ -686,6 +686,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
686 686
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
687 687
 //#define RA_CONTROL_PANEL
688 688
 
689
+// The MakerLab Mini Panel with graphic controller and SD support
690
+// http://reprap.org/wiki/Mini_panel
691
+// #define MINIPANEL
692
+
689 693
 /**
690 694
  * I2C Panels
691 695
  */

+ 4
- 0
Marlin/example_configurations/K8200/Configuration.h View File

@@ -682,6 +682,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
682 682
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
683 683
 //#define RA_CONTROL_PANEL
684 684
 
685
+// The MakerLab Mini Panel with graphic controller and SD support
686
+// http://reprap.org/wiki/Mini_panel
687
+// #define MINIPANEL
688
+
685 689
 /**
686 690
  * I2C Panels
687 691
  */

+ 4
- 0
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h View File

@@ -694,6 +694,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
694 694
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
695 695
 //#define RA_CONTROL_PANEL
696 696
 
697
+// The MakerLab Mini Panel with graphic controller and SD support
698
+// http://reprap.org/wiki/Mini_panel
699
+// #define MINIPANEL
700
+
697 701
 /**
698 702
  * I2C Panels
699 703
  */

+ 4
- 0
Marlin/example_configurations/SCARA/Configuration.h View File

@@ -702,6 +702,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
702 702
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
703 703
 //#define RA_CONTROL_PANEL
704 704
 
705
+// The MakerLab Mini Panel with graphic controller and SD support
706
+// http://reprap.org/wiki/Mini_panel
707
+// #define MINIPANEL
708
+
705 709
 /**
706 710
  * I2C Panels
707 711
  */

+ 4
- 0
Marlin/example_configurations/WITBOX/Configuration.h View File

@@ -686,6 +686,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
686 686
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
687 687
 //#define RA_CONTROL_PANEL
688 688
 
689
+// The MakerLab Mini Panel with graphic controller and SD support
690
+// http://reprap.org/wiki/Mini_panel
691
+// #define MINIPANEL
692
+
689 693
 /**
690 694
  * I2C Panels
691 695
  */

+ 4
- 0
Marlin/example_configurations/adafruit/ST7565/Configuration.h View File

@@ -694,6 +694,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
694 694
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
695 695
 //#define RA_CONTROL_PANEL
696 696
 
697
+// The MakerLab Mini Panel with graphic controller and SD support
698
+// http://reprap.org/wiki/Mini_panel
699
+// #define MINIPANEL
700
+
697 701
 /**
698 702
  * I2C Panels
699 703
  */

+ 4
- 0
Marlin/example_configurations/delta/generic/Configuration.h View File

@@ -821,6 +821,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
821 821
 // in ultralcd.cpp@lcd_delta_calibrate_menu()
822 822
 // #define DELTA_CALIBRATION_MENU
823 823
 
824
+// The MakerLab Mini Panel with graphic controller and SD support
825
+// http://reprap.org/wiki/Mini_panel
826
+// #define MINIPANEL
827
+
824 828
 /**
825 829
  * I2C Panels
826 830
  */

+ 4
- 0
Marlin/example_configurations/makibox/Configuration.h View File

@@ -697,6 +697,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = false; // set to true to invert the logic
697 697
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
698 698
 //#define RA_CONTROL_PANEL
699 699
 
700
+// The MakerLab Mini Panel with graphic controller and SD support
701
+// http://reprap.org/wiki/Mini_panel
702
+// #define MINIPANEL
703
+
700 704
 /**
701 705
  * I2C Panels
702 706
  */

+ 4
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h View File

@@ -688,6 +688,10 @@ const bool Z_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the logic
688 688
 // REMEMBER TO INSTALL LiquidCrystal_I2C.h in your ARDUINO library folder: https://github.com/kiyoshigawa/LiquidCrystal_I2C
689 689
 //#define RA_CONTROL_PANEL
690 690
 
691
+// The MakerLab Mini Panel with graphic controller and SD support
692
+// http://reprap.org/wiki/Mini_panel
693
+// #define MINIPANEL
694
+
691 695
 /**
692 696
  * I2C Panels
693 697
  */

+ 2
- 0
Marlin/pins.h View File

@@ -118,6 +118,8 @@
118 118
   #include "pins_MKS_BASE.h"
119 119
 #elif MB(RIGIDBOARD)
120 120
   #include "pins_RIGIDBOARD.h"
121
+#elif MB(MEGACONTROLLER)
122
+  #include "pins_MEGACONTROLLER.h"
121 123
 #elif MB(99)
122 124
   #include "pins_99.h"
123 125
 #else

+ 112
- 0
Marlin/pins_MEGACONTROLLER.h View File

@@ -0,0 +1,112 @@
1
+/**
2
+ * Mega controller pin assignments
3
+ */
4
+
5
+#ifndef __AVR_ATmega2560__
6
+  #error Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
7
+#endif
8
+
9
+#if EXTRUDERS > 2
10
+  #error Mega Controller supports up to 2 extruders. Comment this line to keep going.
11
+#endif
12
+
13
+#ifdef NUM_SERVOS
14
+   #define SERVO0_PIN         30
15
+   #if NUM_SERVOS > 1
16
+     #define SERVO1_PIN       31
17
+     #if NUM_SERVOS > 2
18
+       #define SERVO2_PIN     32
19
+       #if NUM_SERVOS > 3
20
+         #define SERVO3_PIN   33
21
+       #endif
22
+     #endif
23
+   #endif
24
+#endif // NUM_SERVOS
25
+
26
+#define X_STEP_PIN 62//A8
27
+#define X_DIR_PIN 63//A9
28
+#define X_ENABLE_PIN 61//A7
29
+#define X_MIN_PIN 43
30
+#define X_MAX_PIN 42 //Max endstops default to disabled "-1", set to commented value to enable.
31
+
32
+#define Y_STEP_PIN 65 // A11
33
+#define Y_DIR_PIN 66 // A12
34
+#define Y_ENABLE_PIN 64//A10
35
+#define Y_MIN_PIN 38
36
+#define Y_MAX_PIN 41 
37
+
38
+#define Z_STEP_PIN 68 // A14
39
+#define Z_DIR_PIN 69 // A15
40
+#define Z_ENABLE_PIN 67 // A13
41
+#define Z_MIN_PIN 40
42
+#define Z_MAX_PIN 37
43
+
44
+#define E0_STEP_PIN 23
45
+#define E0_DIR_PIN 24
46
+#define E0_ENABLE_PIN 22
47
+
48
+#define E1_STEP_PIN 26
49
+#define E1_DIR_PIN 27
50
+#define E1_ENABLE_PIN 25
51
+
52
+#define SDPOWER -1
53
+#define SDSS 53
54
+#define LED_PIN 13
55
+
56
+#define FAN_PIN 39
57
+#define FAN1_PIN 35
58
+#define FAN2_PIN 36
59
+#define FAN_SOFT_PWM
60
+#define CONTROLLERFAN_PIN 36
61
+#define PS_ON_PIN -1
62
+#define KILL_PIN -1
63
+
64
+#define HEATER_0_PIN 29 // EXTRUDER 1
65
+#define HEATER_1_PIN 34 // EXTRUDER 2
66
+#define HEATER_2_PIN -1
67
+
68
+#if TEMP_SENSOR_0 == -1
69
+  #define TEMP_0_PIN 4 // ANALOG NUMBERING
70
+#else
71
+  #define TEMP_0_PIN 0 // ANALOG NUMBERING
72
+#endif
73
+
74
+
75
+#if TEMP_SENSOR_1 == -1
76
+  #define TEMP_1_PIN 5 // ANALOG NUMBERING
77
+#else
78
+  #define TEMP_1_PIN 2 // ANALOG NUMBERING
79
+#endif
80
+
81
+#define TEMP_2_PIN 3 // ANALOG NUMBERING
82
+
83
+#define HEATER_BED_PIN 28 // BED
84
+
85
+#if TEMP_SENSOR_BED == -1
86
+  #define TEMP_BED_PIN 6 // ANALOG NUMBERING
87
+#else
88
+  #define TEMP_BED_PIN 1 // ANALOG NUMBERING
89
+#endif
90
+
91
+#ifdef MINIPANEL
92
+    #define BEEPER 46
93
+    // Pins for DOGM SPI LCD Support
94
+    #define DOGLCD_A0  47
95
+    #define DOGLCD_CS  45
96
+    #define LCD_PIN_BL 44  // backlight LED on PA3
97
+    
98
+    #define KILL_PIN 12
99
+    // GLCD features
100
+    //#define LCD_CONTRAST 190
101
+    // Uncomment screen orientation
102
+      // #define LCD_SCREEN_ROT_90
103
+      // #define LCD_SCREEN_ROT_180
104
+      // #define LCD_SCREEN_ROT_270
105
+    //The encoder and click button
106
+    #define BTN_EN1 48
107
+    #define BTN_EN2 11
108
+    #define BTN_ENC 10  //the click switch
109
+    //not connected to a pin
110
+    #define SDCARDDETECT 49
111
+#endif //Minipanel
112
+

+ 21
- 0
Marlin/pins_RAMPS_13.h View File

@@ -191,6 +191,27 @@
191 191
       #define DOGLCD_CS 29
192 192
       #define DOGLCD_A0 27
193 193
       #define LCD_PIN_BL 33
194
+    #elif defined(MINIPANEL)
195
+       #define BEEPER 42
196
+       // Pins for DOGM SPI LCD Support
197
+       #define DOGLCD_A0  44
198
+       #define DOGLCD_CS  66
199
+       #define LCD_PIN_BL	65	// backlight LED on A11/D65
200
+       #define SDSS   53
201
+       
202
+       #define KILL_PIN 64
203
+       // GLCD features
204
+       //#define LCD_CONTRAST 190
205
+       // Uncomment screen orientation
206
+         // #define LCD_SCREEN_ROT_90
207
+         // #define LCD_SCREEN_ROT_180
208
+         // #define LCD_SCREEN_ROT_270
209
+       //The encoder and click button
210
+       #define BTN_EN1 40
211
+       #define BTN_EN2 63
212
+       #define BTN_ENC 59  //the click switch
213
+       //not connected to a pin
214
+       #define SDCARDDETECT 49
194 215
     #else
195 216
       // arduino pin which triggers an piezzo beeper
196 217
       #define BEEPER 33  // Beeper on AUX-4

Loading…
Cancel
Save