Browse Source

Divide up Conditionals to get LCD items early

Scott Lahteine 9 years ago
parent
commit
b6d381f863
30 changed files with 305 additions and 338 deletions
  1. 10
    154
      Marlin/Conditionals.h
  2. 155
    0
      Marlin/Conditionals_lcd.h
  3. 1
    0
      Marlin/Configuration.h
  4. 41
    46
      Marlin/Configuration_adv.h
  5. 25
    31
      Marlin/Marlin.h
  6. 2
    3
      Marlin/Sd2PinMap.h
  7. 1
    0
      Marlin/configurator/config/Configuration.h
  8. 5
    10
      Marlin/configurator/config/Configuration_adv.h
  9. 1
    0
      Marlin/example_configurations/Felix/Configuration.h
  10. 1
    0
      Marlin/example_configurations/Felix/Configuration_DUAL.h
  11. 5
    10
      Marlin/example_configurations/Felix/Configuration_adv.h
  12. 1
    0
      Marlin/example_configurations/Hephestos/Configuration.h
  13. 5
    10
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  14. 1
    0
      Marlin/example_configurations/K8200/Configuration.h
  15. 5
    10
      Marlin/example_configurations/K8200/Configuration_adv.h
  16. 1
    0
      Marlin/example_configurations/SCARA/Configuration.h
  17. 5
    10
      Marlin/example_configurations/SCARA/Configuration_adv.h
  18. 1
    0
      Marlin/example_configurations/WITBOX/Configuration.h
  19. 5
    10
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  20. 1
    0
      Marlin/example_configurations/delta/generic/Configuration.h
  21. 4
    4
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  22. 1
    0
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  23. 4
    4
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  24. 1
    0
      Marlin/example_configurations/makibox/Configuration.h
  25. 5
    10
      Marlin/example_configurations/makibox/Configuration_adv.h
  26. 1
    0
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  27. 5
    10
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  28. 0
    2
      Marlin/pins.h
  29. 0
    1
      Marlin/ultralcd.cpp
  30. 12
    13
      Marlin/ultralcd.h

+ 10
- 154
Marlin/Conditionals.h View File

@@ -5,7 +5,16 @@
5 5
 #ifndef CONDITIONALS_H
6 6
   #define CONDITIONALS_H
7 7
 
8
-  #include "Arduino.h"
8
+  #ifndef AT90USB
9
+    #define HardwareSerial_h // trick to disable the standard HWserial
10
+  #endif
11
+
12
+  #if (ARDUINO >= 100)
13
+    #include "Arduino.h"
14
+  #else
15
+    #include "WProgram.h"
16
+  #endif
17
+
9 18
   #include "pins.h"
10 19
 
11 20
   /**
@@ -39,159 +48,6 @@
39 48
     #define QUICK_HOME //SCARA needs Quickhome
40 49
   #endif
41 50
 
42
-
43
-  /**
44
-   * LCD Controllers
45
-   */
46
-
47
-  #if defined (MAKRPANEL)
48
-   #define DOGLCD
49
-   #define SDSUPPORT
50
-   #define ULTIPANEL
51
-   #define NEWPANEL
52
-   #define DEFAULT_LCD_CONTRAST 17
53
-  #endif
54
-
55
-  #if defined(miniVIKI) || defined(VIKI2)
56
-    #define ULTRA_LCD  //general LCD support, also 16x2
57
-    #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
58
-    #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
59
-
60
-    #ifdef miniVIKI
61
-      #define DEFAULT_LCD_CONTRAST 95
62
-    #else
63
-      #define DEFAULT_LCD_CONTRAST 40
64
-    #endif
65
-
66
-    #define ENCODER_PULSES_PER_STEP 4
67
-    #define ENCODER_STEPS_PER_MENU_ITEM 1
68
-  #endif
69
-
70
-  #ifdef PANEL_ONE
71
-    #define SDSUPPORT
72
-    #define ULTIMAKERCONTROLLER
73
-  #endif
74
-
75
-  #ifdef REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
76
-    #define DOGLCD
77
-    #define U8GLIB_ST7920
78
-    #define REPRAP_DISCOUNT_SMART_CONTROLLER
79
-  #endif
80
-
81
-  #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
82
-   #define ULTIPANEL
83
-   #define NEWPANEL
84
-  #endif
85
-
86
-  #ifdef REPRAPWORLD_KEYPAD
87
-    #define NEWPANEL
88
-    #define ULTIPANEL
89
-  #endif
90
-
91
-  #ifdef RA_CONTROL_PANEL
92
-   #define ULTIPANEL
93
-   #define NEWPANEL
94
-   #define LCD_I2C_TYPE_PCA8574
95
-   #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
96
-  #endif
97
-
98
-  /**
99
-   * I2C PANELS
100
-   */
101
-
102
-  #ifdef LCD_I2C_SAINSMART_YWROBOT
103
-    // This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )
104
-    // Make sure it is placed in the Arduino libraries directory.
105
-    #define LCD_I2C_TYPE_PCF8575
106
-    #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
107
-    #define NEWPANEL
108
-    #define ULTIPANEL
109
-  #endif
110
-
111
-  // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
112
-  #ifdef LCD_I2C_PANELOLU2
113
-    // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
114
-    // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
115
-    // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)
116
-    // Note: The PANELOLU2 encoder click input can either be directly connected to a pin
117
-    //       (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
118
-    #define LCD_I2C_TYPE_MCP23017
119
-    #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
120
-    #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
121
-    #define NEWPANEL
122
-    #define ULTIPANEL
123
-
124
-    #ifndef ENCODER_PULSES_PER_STEP
125
-    #define ENCODER_PULSES_PER_STEP 4
126
-    #endif
127
-
128
-    #ifndef ENCODER_STEPS_PER_MENU_ITEM
129
-    #define ENCODER_STEPS_PER_MENU_ITEM 1
130
-    #endif
131
-
132
-
133
-    #ifdef LCD_USE_I2C_BUZZER
134
-    #define LCD_FEEDBACK_FREQUENCY_HZ 1000
135
-    #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
136
-    #endif
137
-
138
-  #endif
139
-
140
-  // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
141
-  #ifdef LCD_I2C_VIKI
142
-    // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
143
-    // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
144
-    // Note: The pause/stop/resume LCD button pin should be connected to the Arduino
145
-    //       BTN_ENC pin (or set BTN_ENC to -1 if not used)
146
-    #define LCD_I2C_TYPE_MCP23017
147
-    #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
148
-    #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
149
-    #define NEWPANEL
150
-    #define ULTIPANEL
151
-  #endif
152
-
153
-  // Shift register panels
154
-  // ---------------------
155
-  // 2 wire Non-latching LCD SR from:
156
-  // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
157
-
158
-  #ifdef SAV_3DLCD
159
-     #define SR_LCD_2W_NL    // Non latching 2 wire shiftregister
160
-     #define NEWPANEL
161
-     #define ULTIPANEL
162
-  #endif
163
-
164
-
165
-  #ifdef ULTIPANEL
166
-    #define NEWPANEL  //enable this if you have a click-encoder panel
167
-    #define SDSUPPORT
168
-    #define ULTRA_LCD
169
-    #ifdef DOGLCD // Change number of lines to match the DOG graphic display
170
-      #define LCD_WIDTH 22
171
-      #define LCD_HEIGHT 5
172
-    #else
173
-      #define LCD_WIDTH 20
174
-      #define LCD_HEIGHT 4
175
-    #endif
176
-  #else //no panel but just LCD
177
-    #ifdef ULTRA_LCD
178
-    #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
179
-      #define LCD_WIDTH 22
180
-      #define LCD_HEIGHT 5
181
-    #else
182
-      #define LCD_WIDTH 16
183
-      #define LCD_HEIGHT 2
184
-    #endif
185
-    #endif
186
-  #endif
187
-
188
-  /**
189
-   * Default LCD contrast for dogm-like LCD displays
190
-   */
191
-  #if defined(DOGLCD) && !defined(DEFAULT_LCD_CONTRAST)
192
-    #define DEFAULT_LCD_CONTRAST 32
193
-  #endif
194
-
195 51
   /**
196 52
    * AUTOSET LOCATIONS OF LIMIT SWITCHES
197 53
    * Added by ZetaPhoenix 09-15-2012

+ 155
- 0
Marlin/Conditionals_lcd.h View File

@@ -0,0 +1,155 @@
1
+/**
2
+ * Conditionals_lcd.h
3
+ * LCD-oriented defines that depend on configuration.
4
+ */
5
+#ifndef CONDITIONALS_LCD_H
6
+  #define CONDITIONALS_LCD_H
7
+
8
+  #if defined(MAKRPANEL)
9
+    #define DOGLCD
10
+    #define SDSUPPORT
11
+    #define DEFAULT_LCD_CONTRAST 17
12
+    #define ULTIPANEL
13
+    #define NEWPANEL
14
+  #endif
15
+
16
+  #if defined(miniVIKI) || defined(VIKI2)
17
+    #define ULTRA_LCD  //general LCD support, also 16x2
18
+    #define DOGLCD  // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
19
+    #define ULTIMAKERCONTROLLER //as available from the Ultimaker online store.
20
+
21
+    #ifdef miniVIKI
22
+      #define DEFAULT_LCD_CONTRAST 95
23
+    #else
24
+      #define DEFAULT_LCD_CONTRAST 40
25
+    #endif
26
+
27
+    #define ENCODER_PULSES_PER_STEP 4
28
+    #define ENCODER_STEPS_PER_MENU_ITEM 1
29
+  #endif
30
+
31
+  #ifdef PANEL_ONE
32
+    #define SDSUPPORT
33
+    #define ULTIMAKERCONTROLLER
34
+  #endif
35
+
36
+  #ifdef REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
37
+    #define DOGLCD
38
+    #define U8GLIB_ST7920
39
+    #define REPRAP_DISCOUNT_SMART_CONTROLLER
40
+  #endif
41
+
42
+  #if defined(ULTIMAKERCONTROLLER) || defined(REPRAP_DISCOUNT_SMART_CONTROLLER) || defined(G3D_PANEL)
43
+    #define ULTIPANEL
44
+    #define NEWPANEL
45
+  #endif
46
+
47
+  #ifdef REPRAPWORLD_KEYPAD
48
+    #define ULTIPANEL
49
+    #define NEWPANEL
50
+  #endif
51
+
52
+  #ifdef RA_CONTROL_PANEL
53
+    #define LCD_I2C_TYPE_PCA8574
54
+    #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
55
+    #define ULTIPANEL
56
+    #define NEWPANEL
57
+  #endif
58
+
59
+  /**
60
+   * I2C PANELS
61
+   */
62
+
63
+  #ifdef LCD_I2C_SAINSMART_YWROBOT
64
+    // This uses the LiquidCrystal_I2C library ( https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/Home )
65
+    // Make sure it is placed in the Arduino libraries directory.
66
+    #define LCD_I2C_TYPE_PCF8575
67
+    #define LCD_I2C_ADDRESS 0x27   // I2C Address of the port expander
68
+    #define ULTIPANEL
69
+    #define NEWPANEL
70
+  #endif
71
+
72
+  // PANELOLU2 LCD with status LEDs, separate encoder and click inputs
73
+  #ifdef LCD_I2C_PANELOLU2
74
+    // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
75
+    // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
76
+    // (v1.2.3 no longer requires you to define PANELOLU in the LiquidTWI2.h library header file)
77
+    // Note: The PANELOLU2 encoder click input can either be directly connected to a pin
78
+    //       (if BTN_ENC defined to != -1) or read through I2C (when BTN_ENC == -1).
79
+    #define LCD_I2C_TYPE_MCP23017
80
+    #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
81
+    #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD
82
+
83
+    #ifndef ENCODER_PULSES_PER_STEP
84
+      #define ENCODER_PULSES_PER_STEP 4
85
+    #endif
86
+
87
+    #ifndef ENCODER_STEPS_PER_MENU_ITEM
88
+      #define ENCODER_STEPS_PER_MENU_ITEM 1
89
+    #endif
90
+
91
+    #ifdef LCD_USE_I2C_BUZZER
92
+      #define LCD_FEEDBACK_FREQUENCY_HZ 1000
93
+      #define LCD_FEEDBACK_FREQUENCY_DURATION_MS 100
94
+    #endif
95
+
96
+    #define ULTIPANEL
97
+    #define NEWPANEL
98
+  #endif
99
+
100
+  // Panucatt VIKI LCD with status LEDs, integrated click & L/R/U/P buttons, separate encoder inputs
101
+  #ifdef LCD_I2C_VIKI
102
+    // This uses the LiquidTWI2 library v1.2.3 or later ( https://github.com/lincomatic/LiquidTWI2 )
103
+    // Make sure the LiquidTWI2 directory is placed in the Arduino or Sketchbook libraries subdirectory.
104
+    // Note: The pause/stop/resume LCD button pin should be connected to the Arduino
105
+    //       BTN_ENC pin (or set BTN_ENC to -1 if not used)
106
+    #define LCD_I2C_TYPE_MCP23017
107
+    #define LCD_I2C_ADDRESS 0x20 // I2C Address of the port expander
108
+    #define LCD_USE_I2C_BUZZER //comment out to disable buzzer on LCD (requires LiquidTWI2 v1.2.3 or later)
109
+    #define ULTIPANEL
110
+    #define NEWPANEL
111
+  #endif
112
+
113
+  // Shift register panels
114
+  // ---------------------
115
+  // 2 wire Non-latching LCD SR from:
116
+  // https://bitbucket.org/fmalpartida/new-liquidcrystal/wiki/schematics#!shiftregister-connection
117
+
118
+  #ifdef SAV_3DLCD
119
+     #define SR_LCD_2W_NL    // Non latching 2 wire shiftregister
120
+     #define ULTIPANEL
121
+     #define NEWPANEL
122
+  #endif
123
+
124
+
125
+  #ifdef ULTIPANEL
126
+    #define NEWPANEL  //enable this if you have a click-encoder panel
127
+    #define SDSUPPORT
128
+    #define ULTRA_LCD
129
+    #ifdef DOGLCD // Change number of lines to match the DOG graphic display
130
+      #define LCD_WIDTH 22
131
+      #define LCD_HEIGHT 5
132
+    #else
133
+      #define LCD_WIDTH 20
134
+      #define LCD_HEIGHT 4
135
+    #endif
136
+  #else //no panel but just LCD
137
+    #ifdef ULTRA_LCD
138
+    #ifdef DOGLCD // Change number of lines to match the 128x64 graphics display
139
+      #define LCD_WIDTH 22
140
+      #define LCD_HEIGHT 5
141
+    #else
142
+      #define LCD_WIDTH 16
143
+      #define LCD_HEIGHT 2
144
+    #endif
145
+    #endif
146
+  #endif
147
+
148
+  /**
149
+   * Default LCD contrast for dogm-like LCD displays
150
+   */
151
+  #if defined(DOGLCD) && !defined(DEFAULT_LCD_CONTRAST)
152
+    #define DEFAULT_LCD_CONTRAST 32
153
+  #endif
154
+
155
+#endif //CONDITIONALS_LCD_H

+ 1
- 0
Marlin/Configuration.h View File

@@ -713,6 +713,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
713 713
 
714 714
 
715 715
 
716
+#include "Conditionals_lcd.h"
716 717
 #include "Configuration_adv.h"
717 718
 #include "Conditionals.h"
718 719
 #include "SanityCheck.h"

+ 41
- 46
Marlin/Configuration_adv.h View File

@@ -110,41 +110,41 @@
110 110
 // allowing faster printing speeds.
111 111
 //#define DUAL_X_CARRIAGE
112 112
 #ifdef DUAL_X_CARRIAGE
113
-// Configuration for second X-carriage
114
-// Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
115
-// the second x-carriage always homes to the maximum endstop.
116
-#define X2_MIN_POS 80     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
117
-#define X2_MAX_POS 353    // set maximum to the distance between toolheads when both heads are homed
118
-#define X2_HOME_DIR 1     // the second X-carriage always homes to the maximum endstop position
119
-#define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position
120
-    // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software
121
-    // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
122
-    // without modifying the firmware (through the "M218 T1 X???" command).
123
-    // Remember: you should set the second extruder x-offset to 0 in your slicer.
124
-
125
-// Pins for second x-carriage stepper driver (defined here to avoid further complicating pins.h)
126
-#define X2_ENABLE_PIN 29
127
-#define X2_STEP_PIN 25
128
-#define X2_DIR_PIN 23
129
-
130
-// There are a few selectable movement modes for dual x-carriages using M605 S<mode>
131
-//    Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
132
-//                           as long as it supports dual x-carriages. (M605 S0)
133
-//    Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
134
-//                           that additional slicer support is not required. (M605 S1)
135
-//    Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all
136
-//                           actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
137
-//                           once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
138
-
139
-// This is the default power-up mode which can be later using M605.
140
-#define DEFAULT_DUAL_X_CARRIAGE_MODE 0
141
-
142
-// Default settings in "Auto-park Mode"
143
-#define TOOLCHANGE_PARK_ZLIFT   0.2      // the distance to raise Z axis when parking an extruder
144
-#define TOOLCHANGE_UNPARK_ZLIFT 1        // the distance to raise Z axis when unparking an extruder
145
-
146
-// Default x offset in duplication mode (typically set to half print bed width)
147
-#define DEFAULT_DUPLICATION_X_OFFSET 100
113
+  // Configuration for second X-carriage
114
+  // Note: the first x-carriage is defined as the x-carriage which homes to the minimum endstop;
115
+  // the second x-carriage always homes to the maximum endstop.
116
+  #define X2_MIN_POS 80     // set minimum to ensure second x-carriage doesn't hit the parked first X-carriage
117
+  #define X2_MAX_POS 353    // set maximum to the distance between toolheads when both heads are homed
118
+  #define X2_HOME_DIR 1     // the second X-carriage always homes to the maximum endstop position
119
+  #define X2_HOME_POS X2_MAX_POS // default home position is the maximum carriage position
120
+      // However: In this mode the EXTRUDER_OFFSET_X value for the second extruder provides a software
121
+      // override for X2_HOME_POS. This also allow recalibration of the distance between the two endstops
122
+      // without modifying the firmware (through the "M218 T1 X???" command).
123
+      // Remember: you should set the second extruder x-offset to 0 in your slicer.
124
+
125
+  // Pins for second x-carriage stepper driver (defined here to avoid further complicating pins.h)
126
+  #define X2_ENABLE_PIN 29
127
+  #define X2_STEP_PIN 25
128
+  #define X2_DIR_PIN 23
129
+
130
+  // There are a few selectable movement modes for dual x-carriages using M605 S<mode>
131
+  //    Mode 0: Full control. The slicer has full control over both x-carriages and can achieve optimal travel results
132
+  //                           as long as it supports dual x-carriages. (M605 S0)
133
+  //    Mode 1: Auto-park mode. The firmware will automatically park and unpark the x-carriages on tool changes so
134
+  //                           that additional slicer support is not required. (M605 S1)
135
+  //    Mode 2: Duplication mode. The firmware will transparently make the second x-carriage and extruder copy all
136
+  //                           actions of the first x-carriage. This allows the printer to print 2 arbitrary items at
137
+  //                           once. (2nd extruder x offset and temp offset are set using: M605 S2 [Xnnn] [Rmmm])
138
+
139
+  // This is the default power-up mode which can be later using M605.
140
+  #define DEFAULT_DUAL_X_CARRIAGE_MODE 0
141
+
142
+  // Default settings in "Auto-park Mode"
143
+  #define TOOLCHANGE_PARK_ZLIFT   0.2      // the distance to raise Z axis when parking an extruder
144
+  #define TOOLCHANGE_UNPARK_ZLIFT 1        // the distance to raise Z axis when unparking an extruder
145
+
146
+  // Default x offset in duplication mode (typically set to half print bed width)
147
+  #define DEFAULT_DUPLICATION_X_OFFSET 100
148 148
 
149 149
 #endif //DUAL_X_CARRIAGE
150 150
 
@@ -163,20 +163,15 @@
163 163
 #define INVERT_Z_STEP_PIN false
164 164
 #define INVERT_E_STEP_PIN false
165 165
 
166
-//default stepper release if idle. Set to 0 to deactivate.
166
+// Default stepper release if idle. Set to 0 to deactivate.
167 167
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
168 168
 
169 169
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
170 170
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
171 171
 
172
-// Feedrates for manual moves along X, Y, Z, E from panel
173 172
 #ifdef ULTIPANEL
174
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
175
-#endif
176
-
177
-//Comment to disable setting feedrate multiplier via encoder
178
-#ifdef ULTIPANEL
179
-    #define ULTIPANEL_FEEDMULTIPLY
173
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
174
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
180 175
 #endif
181 176
 
182 177
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -301,7 +296,7 @@ const unsigned int dropsegments=5; //everything with less than this number of st
301 296
 
302 297
 // The number of linear motions that can be in the plan at any give time.
303 298
 // THE BLOCK_BUFFER_SIZE NEEDS TO BE A POWER OF 2, i.g. 8,16,32 because shifts and ors are used to do the ring-buffering.
304
-#if defined SDSUPPORT
299
+#ifdef SDSUPPORT
305 300
   #define BLOCK_BUFFER_SIZE 16   // SD,LCD,Buttons take more memory, block buffer needs to be smaller
306 301
 #else
307 302
   #define BLOCK_BUFFER_SIZE 16 // maximize block buffer
@@ -331,9 +326,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
331 326
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
332 327
 #endif
333 328
 
334
-//adds support for experimental filament exchange support M600; requires display
329
+// Add support for experimental filament exchange support M600; requires display
335 330
 #ifdef ULTIPANEL
336
-  #define FILAMENTCHANGEENABLE
331
+  //#define FILAMENTCHANGEENABLE
337 332
   #ifdef FILAMENTCHANGEENABLE
338 333
     #define FILAMENTCHANGE_XPOS 3
339 334
     #define FILAMENTCHANGE_YPOS 3

+ 25
- 31
Marlin/Marlin.h View File

@@ -20,11 +20,6 @@
20 20
 
21 21
 #include "fastio.h"
22 22
 #include "Configuration.h"
23
-#include "pins.h"
24
-
25
-#ifndef AT90USB
26
-  #define  HardwareSerial_h // trick to disable the standard HWserial
27
-#endif
28 23
 
29 24
 #if (ARDUINO >= 100)
30 25
   #include "Arduino.h"
@@ -191,17 +186,17 @@ void ClearToSend();
191 186
 
192 187
 void get_coordinates();
193 188
 #ifdef DELTA
194
-void calculate_delta(float cartesian[3]);
189
+  void calculate_delta(float cartesian[3]);
195 190
   #ifdef ENABLE_AUTO_BED_LEVELING
196
-  extern int delta_grid_spacing[2];
197
-  void adjust_delta(float cartesian[3]);
191
+    extern int delta_grid_spacing[2];
192
+    void adjust_delta(float cartesian[3]);
198 193
   #endif
199
-extern float delta[3];
200
-void prepare_move_raw();
194
+  extern float delta[3];
195
+  void prepare_move_raw();
201 196
 #endif
202 197
 #ifdef SCARA
203
-void calculate_delta(float cartesian[3]);
204
-void calculate_SCARA_forward_Transform(float f_scara[3]);
198
+  void calculate_delta(float cartesian[3]);
199
+  void calculate_SCARA_forward_Transform(float f_scara[3]);
205 200
 #endif
206 201
 void reset_bed_level();
207 202
 void prepare_move();
@@ -209,7 +204,7 @@ void kill();
209 204
 void Stop();
210 205
 
211 206
 #ifdef FILAMENT_RUNOUT_SENSOR
212
-void filrunout();
207
+  void filrunout();
213 208
 #endif
214 209
 
215 210
 bool IsStopped();
@@ -223,7 +218,7 @@ void clamp_to_software_endstops(float target[3]);
223 218
 void refresh_cmd_timeout(void);
224 219
 
225 220
 #ifdef FAST_PWM_FAN
226
-void setPwmFrequency(uint8_t pin, int val);
221
+  void setPwmFrequency(uint8_t pin, int val);
227 222
 #endif
228 223
 
229 224
 #ifndef CRITICAL_SECTION_START
@@ -242,14 +237,14 @@ extern float volumetric_multiplier[EXTRUDERS]; // reciprocal of cross-sectional
242 237
 extern float current_position[NUM_AXIS] ;
243 238
 extern float add_homing[3];
244 239
 #ifdef DELTA
245
-extern float endstop_adj[3];
246
-extern float delta_radius;
247
-extern float delta_diagonal_rod;
248
-extern float delta_segments_per_second;
249
-void recalc_delta_settings(float radius, float diagonal_rod);
240
+  extern float endstop_adj[3];
241
+  extern float delta_radius;
242
+  extern float delta_diagonal_rod;
243
+  extern float delta_segments_per_second;
244
+  void recalc_delta_settings(float radius, float diagonal_rod);
250 245
 #endif
251 246
 #ifdef SCARA
252
-extern float axis_scaling[3];  // Build size scaling
247
+  extern float axis_scaling[3];  // Build size scaling
253 248
 #endif
254 249
 extern float min_pos[3];
255 250
 extern float max_pos[3];
@@ -257,12 +252,12 @@ extern bool axis_known_position[3];
257 252
 extern float zprobe_zoffset;
258 253
 extern int fanSpeed;
259 254
 #ifdef BARICUDA
260
-extern int ValvePressure;
261
-extern int EtoPPressure;
255
+  extern int ValvePressure;
256
+  extern int EtoPPressure;
262 257
 #endif
263 258
 
264 259
 #ifdef FAN_SOFT_PWM
265
-extern unsigned char fanSpeedSoftPwm;
260
+  extern unsigned char fanSpeedSoftPwm;
266 261
 #endif
267 262
 
268 263
 #ifdef FILAMENT_SENSOR
@@ -276,10 +271,10 @@ extern unsigned char fanSpeedSoftPwm;
276 271
 #endif
277 272
 
278 273
 #ifdef FWRETRACT
279
-extern bool autoretract_enabled;
280
-extern bool retracted[EXTRUDERS];
281
-extern float retract_length, retract_length_swap, retract_feedrate, retract_zlift;
282
-extern float retract_recover_length, retract_recover_length_swap, retract_recover_feedrate;
274
+  extern bool autoretract_enabled;
275
+  extern bool retracted[EXTRUDERS];
276
+  extern float retract_length, retract_length_swap, retract_feedrate, retract_zlift;
277
+  extern float retract_recover_length, retract_recover_length_swap, retract_recover_feedrate;
283 278
 #endif
284 279
 
285 280
 extern unsigned long starttime;
@@ -289,11 +284,10 @@ extern unsigned long stoptime;
289 284
 extern uint8_t active_extruder;
290 285
 
291 286
 #ifdef DIGIPOT_I2C
292
-extern void digipot_i2c_set_current( int channel, float current );
293
-extern void digipot_i2c_init();
294
-#endif
295
-
287
+  extern void digipot_i2c_set_current( int channel, float current );
288
+  extern void digipot_i2c_init();
296 289
 #endif
297 290
 
298 291
 extern void calculate_volumetric_multipliers();
299 292
 
293
+#endif //MARLIN_H

+ 2
- 3
Marlin/Sd2PinMap.h View File

@@ -33,9 +33,7 @@ struct pin_map_t {
33 33
   uint8_t bit;
34 34
 };
35 35
 //------------------------------------------------------------------------------
36
-#if defined(__AVR_ATmega1280__)\
37
-|| defined(__AVR_ATmega2560__)
38
-// Mega
36
+#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) // Mega
39 37
 
40 38
 // Two Wire (aka I2C) ports
41 39
 uint8_t const SDA_PIN = 20;  // D1
@@ -43,6 +41,7 @@ uint8_t const SCL_PIN = 21;  // D0
43 41
 
44 42
 #undef MOSI_PIN
45 43
 #undef MISO_PIN
44
+#undef SCK_PIN
46 45
 // SPI port
47 46
 uint8_t const SS_PIN = 53;    // B0
48 47
 uint8_t const MOSI_PIN = 51;  // B2

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

@@ -756,6 +756,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
756 756
 
757 757
 
758 758
 
759
+#include "Conditionals_lcd.h"
759 760
 #include "Configuration_adv.h"
760 761
 #include "Conditionals.h"
761 762
 #include "SanityCheck.h"

+ 5
- 10
Marlin/configurator/config/Configuration_adv.h View File

@@ -180,7 +180,7 @@
180 180
 #define INVERT_Z_STEP_PIN false
181 181
 #define INVERT_E_STEP_PIN false
182 182
 
183
-//default stepper release if idle. Set to 0 to deactivate.
183
+// Default stepper release if idle. Set to 0 to deactivate.
184 184
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
185 185
 
186 186
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
@@ -188,14 +188,9 @@
188 188
 
189 189
 // @section lcd
190 190
 
191
-// Feedrates for manual moves along X, Y, Z, E from panel
192 191
 #ifdef ULTIPANEL
193
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
194
-#endif
195
-
196
-//Comment to disable setting feedrate multiplier via encoder
197
-#ifdef ULTIPANEL
198
-  #define ULTIPANEL_FEEDMULTIPLY
192
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
193
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
199 194
 #endif
200 195
 
201 196
 // @section extras
@@ -368,9 +363,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
368 363
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
369 364
 #endif
370 365
 
371
-//adds support for experimental filament exchange support M600; requires display
366
+// Add support for experimental filament exchange support M600; requires display
372 367
 #ifdef ULTIPANEL
373
-  #define FILAMENTCHANGEENABLE
368
+  //#define FILAMENTCHANGEENABLE
374 369
   #ifdef FILAMENTCHANGEENABLE
375 370
     #define FILAMENTCHANGE_XPOS 3
376 371
     #define FILAMENTCHANGE_YPOS 3

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

@@ -692,6 +692,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
692 692
 
693 693
 
694 694
 
695
+#include "Conditionals_lcd.h"
695 696
 #include "Configuration_adv.h"
696 697
 #include "Conditionals.h"
697 698
 #include "SanityCheck.h"

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

@@ -689,6 +689,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
689 689
 //#define FILAMENT_LCD_DISPLAY
690 690
 
691 691
 
692
+#include "Conditionals_lcd.h"
692 693
 #include "Configuration_adv.h"
693 694
 #include "Conditionals.h"
694 695
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -163,20 +163,15 @@
163 163
 #define INVERT_Z_STEP_PIN false
164 164
 #define INVERT_E_STEP_PIN false
165 165
 
166
-//default stepper release if idle. Set to 0 to deactivate.
166
+// Default stepper release if idle. Set to 0 to deactivate.
167 167
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
168 168
 
169 169
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
170 170
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
171 171
 
172
-// Feedrates for manual moves along X, Y, Z, E from panel
173 172
 #ifdef ULTIPANEL
174
-#define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
175
-#endif
176
-
177
-//Comment to disable setting feedrate multiplier via encoder
178
-#ifdef ULTIPANEL
179
-    #define ULTIPANEL_FEEDMULTIPLY
173
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
174
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
180 175
 #endif
181 176
 
182 177
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -351,9 +346,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
351 346
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
352 347
 #endif
353 348
 
354
-//adds support for experimental filament exchange support M600; requires display
349
+// Add support for experimental filament exchange support M600; requires display
355 350
 #ifdef ULTIPANEL
356
-  #define FILAMENTCHANGEENABLE
351
+  //#define FILAMENTCHANGEENABLE
357 352
   #ifdef FILAMENTCHANGEENABLE
358 353
     #define FILAMENTCHANGE_XPOS 3
359 354
     #define FILAMENTCHANGE_YPOS 3

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

@@ -720,6 +720,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
720 720
 
721 721
 
722 722
 
723
+#include "Conditionals_lcd.h"
723 724
 #include "Configuration_adv.h"
724 725
 #include "Conditionals.h"
725 726
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -167,20 +167,15 @@
167 167
 #define INVERT_Z_STEP_PIN false
168 168
 #define INVERT_E_STEP_PIN false
169 169
 
170
-//default stepper release if idle. Set to 0 to deactivate.
170
+// Default stepper release if idle. Set to 0 to deactivate.
171 171
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
172 172
 
173 173
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
174 174
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
175 175
 
176
-// Feedrates for manual moves along X, Y, Z, E from panel
177 176
 #ifdef ULTIPANEL
178
-#define MANUAL_FEEDRATE {120*60, 120*60, 18*60, 60}  // set the speeds for manual moves (mm/min)
179
-#endif
180
-
181
-//Comment to disable setting feedrate multiplier via encoder
182
-#ifdef ULTIPANEL
183
-  #define ULTIPANEL_FEEDMULTIPLY
177
+  #define MANUAL_FEEDRATE {120*60, 120*60, 18*60, 60}  // Feedrates for manual moves along X, Y, Z, E from panel
178
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
184 179
 #endif
185 180
 
186 181
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -335,9 +330,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
335 330
   #define RETRACT_RECOVER_FEEDRATE 8*60     //default feedrate for recovering from retraction (mm/s)
336 331
 #endif
337 332
 
338
-//adds support for experimental filament exchange support M600; requires display
333
+// Add support for experimental filament exchange support M600; requires display
339 334
 #ifdef ULTIPANEL
340
-  #define FILAMENTCHANGEENABLE
335
+  //#define FILAMENTCHANGEENABLE
341 336
   #ifdef FILAMENTCHANGEENABLE
342 337
     #define FILAMENTCHANGE_XPOS 3
343 338
     #define FILAMENTCHANGE_YPOS 3

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

@@ -724,6 +724,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
724 724
 
725 725
 
726 726
 
727
+#include "Conditionals_lcd.h"
727 728
 #include "Configuration_adv.h"
728 729
 #include "Conditionals.h"
729 730
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -163,20 +163,15 @@
163 163
 #define INVERT_Z_STEP_PIN false
164 164
 #define INVERT_E_STEP_PIN false
165 165
 
166
-//default stepper release if idle. Set to 0 to deactivate.
166
+// Default stepper release if idle. Set to 0 to deactivate.
167 167
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
168 168
 
169 169
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
170 170
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
171 171
 
172
-// Feedrates for manual moves along X, Y, Z, E from panel
173 172
 #ifdef ULTIPANEL
174
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
175
-#endif
176
-
177
-//Comment to disable setting feedrate multiplier via encoder
178
-#ifdef ULTIPANEL
179
-  #define ULTIPANEL_FEEDMULTIPLY
173
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
174
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
180 175
 #endif
181 176
 
182 177
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -331,9 +326,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
331 326
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
332 327
 #endif
333 328
 
334
-//adds support for experimental filament exchange support M600; requires display
329
+// Add support for experimental filament exchange support M600; requires display
335 330
 #ifdef ULTIPANEL
336
-  #define FILAMENTCHANGEENABLE
331
+  //#define FILAMENTCHANGEENABLE
337 332
   #ifdef FILAMENTCHANGEENABLE
338 333
     #define FILAMENTCHANGE_XPOS 3
339 334
     #define FILAMENTCHANGE_YPOS 3

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

@@ -750,6 +750,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
750 750
 
751 751
 
752 752
 
753
+#include "Conditionals_lcd.h"
753 754
 #include "Configuration_adv.h"
754 755
 #include "Conditionals.h"
755 756
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -165,20 +165,15 @@
165 165
 #define INVERT_Z_STEP_PIN false
166 166
 #define INVERT_E_STEP_PIN false
167 167
 
168
-//default stepper release if idle. Set to 0 to deactivate.
168
+// Default stepper release if idle. Set to 0 to deactivate.
169 169
 #define DEFAULT_STEPPER_DEACTIVE_TIME 240
170 170
 
171 171
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
172 172
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
173 173
 
174
-// Feedrates for manual moves along X, Y, Z, E from panel
175 174
 #ifdef ULTIPANEL
176
-  #define MANUAL_FEEDRATE {50*60, 50*60, 10*60, 60}  // set the speeds for manual moves (mm/min)
177
-#endif
178
-
179
-//Comment to disable setting feedrate multiplier via encoder
180
-#ifdef ULTIPANEL
181
-  #define ULTIPANEL_FEEDMULTIPLY
175
+  #define MANUAL_FEEDRATE {50*60, 50*60, 10*60, 60}  // Feedrates for manual moves along X, Y, Z, E from panel
176
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
182 177
 #endif
183 178
 
184 179
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -335,9 +330,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
335 330
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
336 331
 #endif
337 332
 
338
-//adds support for experimental filament exchange support M600; requires display
333
+// Add support for experimental filament exchange support M600; requires display
339 334
 #ifdef ULTIPANEL
340
-  #define FILAMENTCHANGEENABLE
335
+  //#define FILAMENTCHANGEENABLE
341 336
   #ifdef FILAMENTCHANGEENABLE
342 337
     #define FILAMENTCHANGE_XPOS 3
343 338
     #define FILAMENTCHANGE_YPOS 3

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

@@ -717,6 +717,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
717 717
 
718 718
 
719 719
 
720
+#include "Conditionals_lcd.h"
720 721
 #include "Configuration_adv.h"
721 722
 #include "Conditionals.h"
722 723
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -167,20 +167,15 @@
167 167
 #define INVERT_Z_STEP_PIN false
168 168
 #define INVERT_E_STEP_PIN false
169 169
 
170
-//default stepper release if idle. Set to 0 to deactivate.
170
+// Default stepper release if idle. Set to 0 to deactivate.
171 171
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
172 172
 
173 173
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
174 174
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
175 175
 
176
-// Feedrates for manual moves along X, Y, Z, E from panel
177 176
 #ifdef ULTIPANEL
178
-  #define MANUAL_FEEDRATE {120*60, 120*60, 18*60, 60}  // set the speeds for manual moves (mm/min)
179
-#endif
180
-
181
-//Comment to disable setting feedrate multiplier via encoder
182
-#ifdef ULTIPANEL
183
-  #define ULTIPANEL_FEEDMULTIPLY
177
+  #define MANUAL_FEEDRATE {120*60, 120*60, 18*60, 60}  // Feedrates for manual moves along X, Y, Z, E from panel
178
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
184 179
 #endif
185 180
 
186 181
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -335,9 +330,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
335 330
   #define RETRACT_RECOVER_FEEDRATE 8*60     //default feedrate for recovering from retraction (mm/s)
336 331
 #endif
337 332
 
338
-//adds support for experimental filament exchange support M600; requires display
333
+// Add support for experimental filament exchange support M600; requires display
339 334
 #ifdef ULTIPANEL
340
-  #define FILAMENTCHANGEENABLE
335
+  //#define FILAMENTCHANGEENABLE
341 336
   #ifdef FILAMENTCHANGEENABLE
342 337
     #define FILAMENTCHANGE_XPOS 3
343 338
     #define FILAMENTCHANGE_YPOS 3

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

@@ -734,6 +734,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
734 734
 
735 735
 
736 736
 
737
+#include "Conditionals_lcd.h"
737 738
 #include "Configuration_adv.h"
738 739
 #include "Conditionals.h"
739 740
 #include "SanityCheck.h"

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

@@ -166,7 +166,7 @@
166 166
 #define INVERT_Z_STEP_PIN false
167 167
 #define INVERT_E_STEP_PIN false
168 168
 
169
-//default stepper release if idle. Set to 0 to deactivate.
169
+// Default stepper release if idle. Set to 0 to deactivate.
170 170
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
171 171
 
172 172
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
@@ -174,7 +174,7 @@
174 174
 
175 175
 // Feedrates for manual moves along X, Y, Z, E from panel
176 176
 #ifdef ULTIPANEL
177
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
177
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
178 178
 #endif
179 179
 
180 180
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -330,9 +330,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
330 330
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
331 331
 #endif
332 332
 
333
-//adds support for experimental filament exchange support M600; requires display
333
+// Add support for experimental filament exchange support M600; requires display
334 334
 #ifdef ULTIPANEL
335
-  #define FILAMENTCHANGEENABLE
335
+  //#define FILAMENTCHANGEENABLE
336 336
   #ifdef FILAMENTCHANGEENABLE
337 337
     #define FILAMENTCHANGE_XPOS 3
338 338
     #define FILAMENTCHANGE_YPOS 3

+ 1
- 0
Marlin/example_configurations/delta/kossel_mini/Configuration.h View File

@@ -736,6 +736,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
736 736
 
737 737
 
738 738
 
739
+#include "Conditionals_lcd.h"
739 740
 #include "Configuration_adv.h"
740 741
 #include "Conditionals.h"
741 742
 #include "SanityCheck.h"

+ 4
- 4
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -166,7 +166,7 @@
166 166
 #define INVERT_Z_STEP_PIN false
167 167
 #define INVERT_E_STEP_PIN false
168 168
 
169
-//default stepper release if idle. Set to 0 to deactivate.
169
+// Default stepper release if idle. Set to 0 to deactivate.
170 170
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
171 171
 
172 172
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
@@ -174,7 +174,7 @@
174 174
 
175 175
 // Feedrates for manual moves along X, Y, Z, E from panel
176 176
 #ifdef ULTIPANEL
177
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
177
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
178 178
 #endif
179 179
 
180 180
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -329,9 +329,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
329 329
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
330 330
 #endif
331 331
 
332
-//adds support for experimental filament exchange support M600; requires display
332
+// Add support for experimental filament exchange support M600; requires display
333 333
 #ifdef ULTIPANEL
334
-  #define FILAMENTCHANGEENABLE
334
+  //#define FILAMENTCHANGEENABLE
335 335
   #ifdef FILAMENTCHANGEENABLE
336 336
     #define FILAMENTCHANGE_XPOS 3
337 337
     #define FILAMENTCHANGE_YPOS 3

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

@@ -715,6 +715,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
715 715
 
716 716
 
717 717
 
718
+#include "Conditionals_lcd.h"
718 719
 #include "Configuration_adv.h"
719 720
 #include "Conditionals.h"
720 721
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -165,20 +165,15 @@
165 165
 #define INVERT_Z_STEP_PIN false
166 166
 #define INVERT_E_STEP_PIN false
167 167
 
168
-//default stepper release if idle. Set to 0 to deactivate.
168
+// Default stepper release if idle. Set to 0 to deactivate.
169 169
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
170 170
 
171 171
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
172 172
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
173 173
 
174
-// Feedrates for manual moves along X, Y, Z, E from panel
175 174
 #ifdef ULTIPANEL
176
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
177
-#endif
178
-
179
-//Comment to disable setting feedrate multiplier via encoder
180
-#ifdef ULTIPANEL
181
-  #define ULTIPANEL_FEEDMULTIPLY
175
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
176
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
182 177
 #endif
183 178
 
184 179
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -332,9 +327,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
332 327
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
333 328
 #endif
334 329
 
335
-//adds support for experimental filament exchange support M600; requires display
330
+// Add support for experimental filament exchange support M600; requires display
336 331
 #ifdef ULTIPANEL
337
-  #define FILAMENTCHANGEENABLE
332
+  //#define FILAMENTCHANGEENABLE
338 333
   #ifdef FILAMENTCHANGEENABLE
339 334
     #define FILAMENTCHANGE_XPOS 3
340 335
     #define FILAMENTCHANGE_YPOS 3

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

@@ -722,6 +722,7 @@ const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of
722 722
 
723 723
 
724 724
 
725
+#include "Conditionals_lcd.h"
725 726
 #include "Configuration_adv.h"
726 727
 #include "Conditionals.h"
727 728
 #include "SanityCheck.h"

+ 5
- 10
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -167,20 +167,15 @@
167 167
 #define INVERT_Z_STEP_PIN false
168 168
 #define INVERT_E_STEP_PIN false
169 169
 
170
-//default stepper release if idle. Set to 0 to deactivate.
170
+// Default stepper release if idle. Set to 0 to deactivate.
171 171
 #define DEFAULT_STEPPER_DEACTIVE_TIME 60
172 172
 
173 173
 #define DEFAULT_MINIMUMFEEDRATE       0.0     // minimum feedrate
174 174
 #define DEFAULT_MINTRAVELFEEDRATE     0.0
175 175
 
176
-// Feedrates for manual moves along X, Y, Z, E from panel
177 176
 #ifdef ULTIPANEL
178
-  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60}  // set the speeds for manual moves (mm/min)
179
-#endif
180
-
181
-// Comment to disable setting feedrate multiplier via encoder
182
-#ifdef ULTIPANEL
183
-  #define ULTIPANEL_FEEDMULTIPLY
177
+  #define MANUAL_FEEDRATE {50*60, 50*60, 4*60, 60} // Feedrates for manual moves along X, Y, Z, E from panel
178
+  #define ULTIPANEL_FEEDMULTIPLY  // Comment to disable setting feedrate multiplier via encoder
184 179
 #endif
185 180
 
186 181
 // minimum time in microseconds that a movement needs to take if the buffer is emptied.
@@ -339,9 +334,9 @@ const unsigned int dropsegments=5; //everything with less than this number of st
339 334
   #define RETRACT_RECOVER_FEEDRATE 8     //default feedrate for recovering from retraction (mm/s)
340 335
 #endif
341 336
 
342
-//adds support for experimental filament exchange support M600; requires display
337
+// Add support for experimental filament exchange support M600; requires display
343 338
 #ifdef ULTIPANEL
344
-  #define FILAMENTCHANGEENABLE
339
+  //#define FILAMENTCHANGEENABLE
345 340
   #ifdef FILAMENTCHANGEENABLE
346 341
     #define FILAMENTCHANGE_XPOS 3
347 342
     #define FILAMENTCHANGE_YPOS 3

+ 0
- 2
Marlin/pins.h View File

@@ -5,8 +5,6 @@
5 5
 #ifndef PINS_H
6 6
 #define PINS_H
7 7
 
8
-#include "boards.h"
9
-
10 8
 // Preset optional pins
11 9
 #define X_MS1_PIN -1
12 10
 #define X_MS2_PIN -1

+ 0
- 1
Marlin/ultralcd.cpp View File

@@ -1,4 +1,3 @@
1
-#include "temperature.h"
2 1
 #include "ultralcd.h"
3 2
 #ifdef ULTRA_LCD
4 3
 #include "Marlin.h"

+ 12
- 13
Marlin/ultralcd.h View File

@@ -14,10 +14,10 @@
14 14
   void lcd_reset_alert_level();
15 15
   bool lcd_detected(void);
16 16
 
17
-#ifdef DOGLCD
18
-  extern int lcd_contrast;
19
-  void lcd_setcontrast(uint8_t value);
20
-#endif
17
+  #ifdef DOGLCD
18
+    extern int lcd_contrast;
19
+    void lcd_setcontrast(uint8_t value);
20
+  #endif
21 21
 
22 22
   static unsigned char blink = 0;	// Variable for visualization of fan rotation in GLCD
23 23
 
@@ -28,27 +28,26 @@
28 28
   #define LCD_TIMEOUT_TO_STATUS 15000
29 29
 
30 30
   #ifdef ULTIPANEL
31
-  void lcd_buttons_update();
32
-  extern volatile uint8_t buttons;  //the last checked buttons in a bit array.
33
-  #ifdef REPRAPWORLD_KEYPAD
34
-    extern volatile uint8_t buttons_reprapworld_keypad; // to store the keypad shift register values
35
-  #endif
31
+    void lcd_buttons_update();
32
+    extern volatile uint8_t buttons;  //the last checked buttons in a bit array.
33
+    #ifdef REPRAPWORLD_KEYPAD
34
+      extern volatile uint8_t buttons_reprapworld_keypad; // to store the keypad shift register values
35
+    #endif
36 36
   #else
37
-  FORCE_INLINE void lcd_buttons_update() {}
37
+    FORCE_INLINE void lcd_buttons_update() {}
38 38
   #endif
39 39
 
40 40
   extern int plaPreheatHotendTemp;
41 41
   extern int plaPreheatHPBTemp;
42 42
   extern int plaPreheatFanSpeed;
43
-
44 43
   extern int absPreheatHotendTemp;
45 44
   extern int absPreheatHPBTemp;
46 45
   extern int absPreheatFanSpeed;
47
-  
46
+
48 47
   extern bool cancel_heatup;
49 48
   
50 49
   #ifdef FILAMENT_LCD_DISPLAY
51
-        extern unsigned long message_millis;
50
+    extern unsigned long message_millis;
52 51
   #endif
53 52
 
54 53
   void lcd_buzz(long duration,uint16_t freq);

Loading…
Cancel
Save