Pārlūkot izejas kodu

Merge pull request #4305 from jbrazio/feature/splash-improvement

Custom boot screen feature improvement
Scott Lahteine 9 gadus atpakaļ
vecāks
revīzija
0f3232065e
34 mainītis faili ar 655 papildinājumiem un 154 dzēšanām
  1. 5
    1
      Marlin/Conditionals.h
  2. 17
    1
      Marlin/Configuration.h
  3. 2
    0
      Marlin/Marlin.h
  4. 1
    1
      Marlin/Marlin_main.cpp
  5. 0
    77
      Marlin/dogm_custom_bitmaps.h
  6. 17
    21
      Marlin/dogm_lcd_implementation.h
  7. 18
    2
      Marlin/example_configurations/Cartesio/Configuration.h
  8. 95
    0
      Marlin/example_configurations/Cartesio/_Bootscreen.h
  9. 18
    2
      Marlin/example_configurations/Felix/Configuration.h
  10. 18
    2
      Marlin/example_configurations/Felix/DUAL/Configuration.h
  11. 18
    2
      Marlin/example_configurations/Hephestos/Configuration.h
  12. 18
    2
      Marlin/example_configurations/Hephestos_2/Configuration.h
  13. 95
    0
      Marlin/example_configurations/Hephestos_2/_Bootscreen.h
  14. 18
    2
      Marlin/example_configurations/K8200/Configuration.h
  15. 18
    2
      Marlin/example_configurations/K8400/Configuration.h
  16. 18
    2
      Marlin/example_configurations/K8400/Dual-head/Configuration.h
  17. 18
    2
      Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h
  18. 18
    2
      Marlin/example_configurations/RigidBot/Configuration.h
  19. 18
    2
      Marlin/example_configurations/SCARA/Configuration.h
  20. 18
    2
      Marlin/example_configurations/TAZ4/Configuration.h
  21. 18
    2
      Marlin/example_configurations/WITBOX/Configuration.h
  22. 18
    2
      Marlin/example_configurations/adafruit/ST7565/Configuration.h
  23. 18
    2
      Marlin/example_configurations/delta/biv2.5/Configuration.h
  24. 18
    2
      Marlin/example_configurations/delta/generic/Configuration.h
  25. 18
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration.h
  26. 18
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration.h
  27. 18
    2
      Marlin/example_configurations/delta/kossel_xl/Configuration.h
  28. 18
    2
      Marlin/example_configurations/makibox/Configuration.h
  29. 18
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration.h
  30. 3
    1
      Marlin/macros.h
  31. 0
    9
      Marlin/ultralcd_implementation_hitachi_HD44780.h
  32. 33
    0
      Marlin/utility.cpp
  33. 4
    0
      buildroot/bin/restore_configs
  34. 5
    1
      buildroot/bin/use_example_configs

+ 5
- 1
Marlin/Conditionals.h Parādīt failu

@@ -55,7 +55,7 @@
55 55
     #define LCD_CONTRAST_MIN 60
56 56
     #define LCD_CONTRAST_MAX 140
57 57
   #endif
58
-  
58
+
59 59
   #if ENABLED(MAKRPANEL) || ENABLED(MINIPANEL)
60 60
     #define DOGLCD
61 61
     #define ULTIPANEL
@@ -269,6 +269,10 @@
269 269
     #endif
270 270
   #endif
271 271
 
272
+  #ifndef BOOTSCREEN_TIMEOUT
273
+    #define BOOTSCREEN_TIMEOUT 2500
274
+  #endif
275
+
272 276
 #else // CONFIGURATION_LCD
273 277
 
274 278
   #define CONDITIONALS_H

+ 17
- 1
Marlin/Configuration.h Parādīt failu

@@ -98,7 +98,23 @@
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100 100
 #define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during bootup in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_Bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 2
- 0
Marlin/Marlin.h Parādīt failu

@@ -389,4 +389,6 @@ void calculate_volumetric_multipliers();
389 389
   #endif
390 390
 #endif
391 391
 
392
+void safe_delay(uint16_t del);
393
+
392 394
 #endif //MARLIN_H

+ 1
- 1
Marlin/Marlin_main.cpp Parādīt failu

@@ -946,7 +946,7 @@ void setup() {
946 946
   lcd_init();
947 947
   #if ENABLED(SHOW_BOOTSCREEN)
948 948
     #if ENABLED(DOGLCD)
949
-      delay(1000);
949
+      safe_delay(BOOTSCREEN_TIMEOUT);
950 950
     #elif ENABLED(ULTRA_LCD)
951 951
       bootscreen();
952 952
       lcd_init();

+ 0
- 77
Marlin/dogm_custom_bitmaps.h Parādīt failu

@@ -1,77 +0,0 @@
1
-/**
2
- * Marlin 3D Printer Firmware
3
- * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
- *
5
- * Based on Sprinter and grbl.
6
- * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
- *
8
- * This program is free software: you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation, either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
- *
21
- */
22
-
23
-/**
24
- * BitMap for custom splashscreen
25
- * Generated with: http://www.digole.com/tools/PicturetoC_Hex_converter.php
26
- */
27
-
28
-//#define CUSTOM_START_BMP
29
-
30
-#if ENABLED(CUSTOM_START_BMP)
31
-  
32
-  #define CUSTOM_START_BMP_DELAY     2000
33
-  #define CUSTOM_START_BMPWIDTH      112
34
-  #define CUSTOM_START_BMPHEIGHT      38
35
-  #define CUSTOM_START_BMPBYTEWIDTH   14
36
-  #define CUSTOM_START_BMPBYTES      532 // CUSTOM_START_BMPWIDTH * CUSTOM_START_BMPHEIGHT / 8
37
-
38
-  const unsigned char custom_start_bmp[CUSTOM_START_BMPBYTES] PROGMEM = {
39
-    0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
40
-    0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
41
-    0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xFF, 0xFF,
42
-    0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xFF, 0xFF,
43
-    0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xFF, 0xFF,
44
-    0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
45
-    0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x7F, 0xFF,
46
-    0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x3F, 0xFF,
47
-    0xC0, 0x0F, 0xC0, 0xFC, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x18, 0x00, 0x1F, 0xFF,
48
-    0xC0, 0x3F, 0xE1, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78, 0x3C, 0x00, 0x0F, 0xFF,
49
-    0xC0, 0x7F, 0xF3, 0xFF, 0x80, 0x00, 0x00, 0x00, 0x00, 0x78, 0x3C, 0x00, 0x07, 0xFF,
50
-    0xC0, 0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x78, 0x3C, 0x00, 0x03, 0xFF,
51
-    0xC1, 0xF8, 0x7F, 0x87, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x01, 0xFF,
52
-    0xC1, 0xF0, 0x3F, 0x03, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00, 0xFF,
53
-    0xC1, 0xE0, 0x1E, 0x01, 0xE0, 0x1F, 0x00, 0x03, 0xE0, 0x78, 0x3C, 0x03, 0xF0, 0x7F,
54
-    0xC1, 0xE0, 0x1E, 0x01, 0xE0, 0x7F, 0xC0, 0x0F, 0xF8, 0x78, 0x3C, 0x07, 0xFC, 0x3F,
55
-    0xC1, 0xE0, 0x1E, 0x01, 0xE1, 0xFF, 0xE0, 0x1F, 0xFC, 0x78, 0x3C, 0x0F, 0xFE, 0x1F,
56
-    0xC1, 0xE0, 0x1E, 0x01, 0xE3, 0xFF, 0xF0, 0x3F, 0xFE, 0x78, 0x3C, 0x1F, 0xFE, 0x0F,
57
-    0xC1, 0xE0, 0x1E, 0x01, 0xE3, 0xF3, 0xF8, 0x3F, 0x3E, 0x78, 0x3C, 0x3F, 0x3F, 0x07,
58
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0xE0, 0xFC, 0x7C, 0x1F, 0x78, 0x3C, 0x3E, 0x1F, 0x07,
59
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0xC0, 0x7C, 0x7C, 0x0F, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
60
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0x80, 0x7C, 0x78, 0x0F, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
61
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0x80, 0x3C, 0x78, 0x00, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
62
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0x80, 0x3C, 0x78, 0x00, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
63
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0x80, 0x3C, 0x78, 0x00, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
64
-    0xC1, 0xE0, 0x1E, 0x01, 0xE7, 0xC0, 0x3C, 0x78, 0x00, 0x78, 0x3C, 0x3C, 0x0F, 0x03,
65
-    0xC1, 0xE0, 0x1E, 0x01, 0xE3, 0xE0, 0x3C, 0x78, 0x00, 0x7C, 0x3C, 0x3C, 0x0F, 0x03,
66
-    0xC1, 0xE0, 0x1E, 0x01, 0xE3, 0xFF, 0x3F, 0xF8, 0x00, 0x7F, 0xBC, 0x3C, 0x0F, 0x03,
67
-    0xC1, 0xE0, 0x1E, 0x01, 0xE1, 0xFF, 0x3F, 0xF8, 0x00, 0x3F, 0xBF, 0xFC, 0x0F, 0x03,
68
-    0xC1, 0xE0, 0x1E, 0x01, 0xE0, 0xFF, 0x3F, 0xF8, 0x00, 0x1F, 0xBF, 0xFC, 0x0F, 0x03,
69
-    0xC1, 0xE0, 0x1E, 0x01, 0xE0, 0x7F, 0x3F, 0xF8, 0x00, 0x0F, 0xBF, 0xFC, 0x0F, 0x03,
70
-    0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07,
71
-    0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06,
72
-    0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E,
73
-    0x38, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C,
74
-    0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
75
-    0x0F, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0,
76
-    0x01, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80 };
77
-#endif

+ 17
- 21
Marlin/dogm_lcd_implementation.h Parādīt failu

@@ -53,8 +53,6 @@
53 53
 
54 54
 #include <U8glib.h>
55 55
 #include "dogm_bitmaps.h"
56
-#include "dogm_custom_bitmaps.h"
57
-
58 56
 
59 57
 #include "ultralcd.h"
60 58
 #include "ultralcd_st7920_u8glib_rrd.h"
@@ -220,10 +218,6 @@ char lcd_printPGM(const char* str) {
220 218
   return n;
221 219
 }
222 220
 
223
-#if ENABLED(SHOW_BOOTSCREEN)
224
-  static bool show_bootscreen = true;
225
-#endif
226
-
227 221
 /* Warning: This function is called from interrupt context */
228 222
 static void lcd_implementation_init() {
229 223
 
@@ -241,11 +235,6 @@ static void lcd_implementation_init() {
241 235
     u8g.setContrast(lcd_contrast);
242 236
   #endif
243 237
 
244
-  // FIXME: remove this workaround
245
-  // Uncomment this if you have the first generation (V1.10) of STBs board
246
-  // pinMode(17, OUTPUT); // Enable LCD backlight
247
-  // digitalWrite(17, HIGH);
248
-
249 238
   #if ENABLED(LCD_SCREEN_ROT_90)
250 239
     u8g.setRot90();   // Rotate screen by 90°
251 240
   #elif ENABLED(LCD_SCREEN_ROT_180)
@@ -255,16 +244,23 @@ static void lcd_implementation_init() {
255 244
   #endif
256 245
 
257 246
   #if ENABLED(SHOW_BOOTSCREEN)
258
-    #if ENABLED(CUSTOM_START_BMP)
247
+    static bool show_bootscreen = true;
248
+
249
+    #if ENABLED(SHOW_CUSTOM_BOOTSCREEN)
259 250
       if (show_bootscreen) {
260 251
         u8g.firstPage();
261 252
         do {
262
-            u8g.drawBitmapP((128-(CUSTOM_START_BMPWIDTH))/2, (64 - (CUSTOM_START_BMPHEIGHT))/2, CUSTOM_START_BMPBYTEWIDTH, CUSTOM_START_BMPHEIGHT, custom_start_bmp);
253
+          u8g.drawBitmapP(
254
+            (128 - (CUSTOM_BOOTSCREEN_BMPWIDTH))  /2,
255
+            ( 64 - (CUSTOM_BOOTSCREEN_BMPHEIGHT)) /2,
256
+            CEILING(CUSTOM_BOOTSCREEN_BMPWIDTH, 8), CUSTOM_BOOTSCREEN_BMPHEIGHT, custom_start_bmp);
263 257
         } while (u8g.nextPage());
264
-        delay(CUSTOM_START_BMP_DELAY);
258
+        safe_delay(CUSTOM_BOOTSCREEN_TIMEOUT);
265 259
       }
266
-    #endif
260
+    #endif // SHOW_CUSTOM_BOOTSCREEN
261
+
267 262
     int offx = (u8g.getWidth() - (START_BMPWIDTH)) / 2;
263
+
268 264
     #if ENABLED(START_BMPHIGH)
269 265
       int offy = 0;
270 266
     #else
@@ -273,9 +269,9 @@ static void lcd_implementation_init() {
273 269
 
274 270
     int txt1X = (u8g.getWidth() - (sizeof(STRING_SPLASH_LINE1) - 1) * (DOG_CHAR_WIDTH)) / 2;
275 271
 
276
-    u8g.firstPage();
277
-    do {
278
-      if (show_bootscreen) {
272
+    if (show_bootscreen) {
273
+      u8g.firstPage();
274
+      do {
279 275
         u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
280 276
         lcd_setFont(FONT_MENU);
281 277
         #ifndef STRING_SPLASH_LINE2
@@ -285,12 +281,12 @@ static void lcd_implementation_init() {
285 281
           u8g.drawStr(txt1X, u8g.getHeight() - (DOG_CHAR_HEIGHT) * 3 / 2, STRING_SPLASH_LINE1);
286 282
           u8g.drawStr(txt2X, u8g.getHeight() - (DOG_CHAR_HEIGHT) * 1 / 2, STRING_SPLASH_LINE2);
287 283
         #endif
288
-      }
289
-    } while (u8g.nextPage());
284
+      } while (u8g.nextPage());
285
+    }
290 286
 
291 287
     show_bootscreen = false;
292 288
 
293
-  #endif
289
+  #endif // SHOW_BOOTSCREEN
294 290
 }
295 291
 
296 292
 void lcd_kill_screen() {

+ 18
- 2
Marlin/example_configurations/Cartesio/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(MaukCC, CartesioE)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 "Cartesio" // will be shown during bootup in line1
101
-#define STRING_SPLASH_LINE2 "Marlin " SHORT_BUILD_VERSION // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_Bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 95
- 0
Marlin/example_configurations/Cartesio/_Bootscreen.h Parādīt failu

@@ -0,0 +1,95 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#include <avr/pgmspace.h>
23
+
24
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
25
+  #define CUSTOM_BOOTSCREEN_TIMEOUT   2500
26
+  #define CUSTOM_BOOTSCREEN_BMPWIDTH  63
27
+  #define CUSTOM_BOOTSCREEN_BMPHEIGHT 64
28
+
29
+  const unsigned char 81x0i84fkcmoqbu7vte29[512] PROGMEM = {
30
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
31
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
32
+    0x00, 0x00, 0x00, 0x3f, 0xfc, 0x00, 0x00, 0x00,
33
+    0x00, 0x00, 0x03, 0xff, 0xff, 0xc0, 0x00, 0x00,
34
+    0x00, 0x00, 0x1f, 0xff, 0xff, 0xf0, 0x00, 0x00,
35
+    0x00, 0x00, 0x7f, 0xff, 0xff, 0xfc, 0x00, 0x00,
36
+    0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00,
37
+    0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00,
38
+    0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
39
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
40
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
41
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
42
+    0x00, 0x0f, 0x07, 0x87, 0xff, 0xff, 0xe0, 0x00,
43
+    0x00, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0x00,
44
+    0x01, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0x80,
45
+    0x03, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0x80,
46
+    0x07, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xe1, 0xc0,
47
+    0x07, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xe0,
48
+    0x0f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xe0,
49
+    0x0f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xf0,
50
+    0x1f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xf0,
51
+    0x1f, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xe1, 0xf0,
52
+    0x3f, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0xf8,
53
+    0x3f, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0xf8,
54
+    0x3f, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xf1, 0xf8,
55
+    0x3f, 0x1f, 0x8f, 0xc7, 0xff, 0xff, 0xe1, 0xf8,
56
+    0x7f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xfc,
57
+    0x7f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xfc,
58
+    0x7f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xfc,
59
+    0x7f, 0x1f, 0x8f, 0xc7, 0xc0, 0x00, 0x01, 0xfc,
60
+    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc,
61
+    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc,
62
+    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc,
63
+    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc,
64
+    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc,
65
+    0x7f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xfc,
66
+    0x7f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xfc,
67
+    0x7f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xfc,
68
+    0x3f, 0x0f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf8,
69
+    0x3f, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf8,
70
+    0x3f, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf8,
71
+    0x3f, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf8,
72
+    0x1f, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf0,
73
+    0x1f, 0x0f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xf0,
74
+    0x1f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xe0,
75
+    0x0f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xe0,
76
+    0x0f, 0x00, 0x00, 0x07, 0xc7, 0xe3, 0xf1, 0xc0,
77
+    0x07, 0x0f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0xc0,
78
+    0x03, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0x80,
79
+    0x03, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf1, 0x00,
80
+    0x01, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf0, 0x00,
81
+    0x00, 0x1f, 0xff, 0xff, 0xc7, 0xe3, 0xf0, 0x00,
82
+    0x00, 0x0f, 0xff, 0xff, 0xc3, 0xc1, 0xe0, 0x00,
83
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
84
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
85
+    0x00, 0x00, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00,
86
+    0x00, 0x07, 0xff, 0xff, 0xff, 0xff, 0xc0, 0x00,
87
+    0x00, 0x03, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00,
88
+    0x00, 0x01, 0xff, 0xff, 0xff, 0xfe, 0x00, 0x00,
89
+    0x00, 0x00, 0x7f, 0xff, 0xff, 0xfc, 0x00, 0x00,
90
+    0x00, 0x00, 0x1f, 0xff, 0xff, 0xf0, 0x00, 0x00,
91
+    0x00, 0x00, 0x07, 0xff, 0xff, 0x80, 0x00, 0x00,
92
+    0x00, 0x00, 0x00, 0x7f, 0xf8, 0x00, 0x00, 0x00,
93
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
94
+  };
95
+#endif

+ 18
- 2
Marlin/example_configurations/Felix/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/Felix/DUAL/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/Hephestos/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/Hephestos_2/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "@jbrazio" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_Bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 95
- 0
Marlin/example_configurations/Hephestos_2/_Bootscreen.h Parādīt failu

@@ -0,0 +1,95 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+#include <avr/pgmspace.h>
23
+
24
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
25
+  #define CUSTOM_BOOTSCREEN_TIMEOUT   2500
26
+  #define CUSTOM_BOOTSCREEN_BMPWIDTH  62
27
+  #define CUSTOM_BOOTSCREEN_BMPHEIGHT 64
28
+
29
+  const unsigned char custom_start_bmp[512] PROGMEM = {
30
+    0x00, 0x00, 0x00, 0x0f, 0xf0, 0x00, 0x00, 0x00,
31
+    0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
32
+    0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
33
+    0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
34
+    0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
35
+    0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00,
36
+    0x00, 0x03, 0xc0, 0x0f, 0xf0, 0x07, 0x80, 0x00,
37
+    0x00, 0x07, 0xe0, 0x07, 0xe0, 0x0f, 0xc0, 0x00,
38
+    0x00, 0x0f, 0xf0, 0x03, 0xc0, 0x1f, 0xe0, 0x00,
39
+    0x00, 0x1f, 0xf8, 0x00, 0x00, 0x3f, 0xf0, 0x00,
40
+    0x00, 0x1f, 0xf8, 0x00, 0x00, 0x3f, 0xf0, 0x00,
41
+    0x00, 0x1f, 0xf8, 0x00, 0x00, 0x3f, 0xf0, 0x00,
42
+    0x00, 0x1f, 0xf8, 0x00, 0x00, 0x3f, 0xf0, 0x00,
43
+    0x00, 0x1f, 0xf8, 0x00, 0x00, 0x3f, 0xf0, 0x00,
44
+    0x00, 0x0f, 0xf0, 0x00, 0x00, 0x1f, 0xe0, 0x00,
45
+    0x00, 0x07, 0xe0, 0x00, 0x00, 0x0f, 0xc0, 0x00,
46
+    0x00, 0x03, 0xc0, 0x00, 0x00, 0x07, 0x80, 0x00,
47
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
48
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,
49
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xf8,
50
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc,
51
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfc,
52
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfc,
53
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfc,
54
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfc,
55
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xfc,
56
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0xfc,
57
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xf8,
58
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,
59
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
60
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
62
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
63
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
64
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
66
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
67
+    0x1e, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
68
+    0x3f, 0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
69
+    0x7f, 0x80, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
70
+    0xff, 0xc0, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
71
+    0xff, 0xc0, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
72
+    0xff, 0xc0, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00,
73
+    0xff, 0xc0, 0x00, 0x00, 0xf7, 0xc0, 0x1f, 0x80,
74
+    0xff, 0xc0, 0x00, 0x00, 0xff, 0xf0, 0x7f, 0xc0,
75
+    0x7f, 0x80, 0x00, 0x00, 0xff, 0xf8, 0xff, 0xe0,
76
+    0x3f, 0x00, 0x00, 0x00, 0xfc, 0xf8, 0xf0, 0xf8,
77
+    0x1e, 0x00, 0x00, 0x00, 0xf8, 0x7d, 0xe0, 0x78,
78
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
79
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
80
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
81
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
82
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
83
+    0x00, 0x00, 0x00, 0x00, 0xf0, 0x3d, 0xe0, 0x78,
84
+    0x00, 0x00, 0x00, 0x00, 0xf8, 0x79, 0xf0, 0xf8,
85
+    0x00, 0x00, 0x00, 0x00, 0xff, 0xf8, 0xff, 0xf8,
86
+    0x00, 0x00, 0x00, 0x00, 0x3f, 0xf0, 0x7f, 0xf8,
87
+    0x00, 0x00, 0x00, 0x00, 0x0f, 0xe0, 0x3f, 0xf8,
88
+    0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x0e, 0x78,
89
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
90
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
91
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
92
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
93
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x78,
94
+  };
95
+#endif

+ 18
- 2
Marlin/example_configurations/K8200/Configuration.h Parādīt failu

@@ -104,8 +104,24 @@
104 104
 // build by the user have been successfully uploaded into firmware.
105 105
 #define STRING_CONFIG_H_AUTHOR "(K8200, @CONSULitAS)" // Who made the changes.
106 106
 #define SHOW_BOOTSCREEN
107
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
108
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
107
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
108
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
109
+
110
+//
111
+// *** VENDORS PLEASE READ *****************************************************
112
+//
113
+// Marlin now allow you to have a vendor boot image to be displayed on machine
114
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
115
+// custom boot image and them the default Marlin boot image is shown.
116
+//
117
+// We suggest for you to take advantage of this new feature and keep the Marlin
118
+// boot image unmodified. For an example have a look at the bq Hephestos 2
119
+// example configuration folder.
120
+//
121
+//#define SHOW_CUSTOM_BOOTSCREEN
122
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
123
+  #include "_bootscreen.h"
124
+#endif
109 125
 
110 126
 // @section machine
111 127
 

+ 18
- 2
Marlin/example_configurations/K8400/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(Anthony Birkett, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/K8400/Dual-head/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(Anthony Birkett, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/RepRapWorld/Megatronics/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "RepRapWorld.com" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/RigidBot/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/SCARA/Configuration.h Parādīt failu

@@ -122,8 +122,24 @@
122 122
 // build by the user have been successfully uploaded into firmware.
123 123
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
124 124
 #define SHOW_BOOTSCREEN
125
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
126
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
125
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
126
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
127
+
128
+//
129
+// *** VENDORS PLEASE READ *****************************************************
130
+//
131
+// Marlin now allow you to have a vendor boot image to be displayed on machine
132
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
133
+// custom boot image and them the default Marlin boot image is shown.
134
+//
135
+// We suggest for you to take advantage of this new feature and keep the Marlin
136
+// boot image unmodified. For an example have a look at the bq Hephestos 2
137
+// example configuration folder.
138
+//
139
+//#define SHOW_CUSTOM_BOOTSCREEN
140
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
141
+  #include "_bootscreen.h"
142
+#endif
127 143
 
128 144
 // @section machine
129 145
 

+ 18
- 2
Marlin/example_configurations/TAZ4/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(Aleph Objects, Inc, TAZ  config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/WITBOX/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(bq Witbox)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_Bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/adafruit/ST7565/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/delta/biv2.5/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/delta/generic/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration.h Parādīt failu

@@ -103,8 +103,24 @@
103 103
 // build by the user have been successfully uploaded into firmware.
104 104
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
105 105
 #define SHOW_BOOTSCREEN
106
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
107
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
106
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
107
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
108
+
109
+//
110
+// *** VENDORS PLEASE READ *****************************************************
111
+//
112
+// Marlin now allow you to have a vendor boot image to be displayed on machine
113
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
114
+// custom boot image and them the default Marlin boot image is shown.
115
+//
116
+// We suggest for you to take advantage of this new feature and keep the Marlin
117
+// boot image unmodified. For an example have a look at the bq Hephestos 2
118
+// example configuration folder.
119
+//
120
+//#define SHOW_CUSTOM_BOOTSCREEN
121
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
122
+  #include "_bootscreen.h"
123
+#endif
108 124
 
109 125
 // @section machine
110 126
 

+ 18
- 2
Marlin/example_configurations/delta/kossel_xl/Configuration.h Parādīt failu

@@ -90,8 +90,24 @@
90 90
 // build by the user have been successfully uploaded into firmware.
91 91
 #define STRING_CONFIG_H_AUTHOR "(oxivanisher)" // Who made the changes.
92 92
 #define SHOW_BOOTSCREEN
93
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
94
-#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
93
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
94
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
95
+
96
+//
97
+// *** VENDORS PLEASE READ *****************************************************
98
+//
99
+// Marlin now allow you to have a vendor boot image to be displayed on machine
100
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
101
+// custom boot image and them the default Marlin boot image is shown.
102
+//
103
+// We suggest for you to take advantage of this new feature and keep the Marlin
104
+// boot image unmodified. For an example have a look at the bq Hephestos 2
105
+// example configuration folder.
106
+//
107
+//#define SHOW_CUSTOM_BOOTSCREEN
108
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
109
+  #include "_bootscreen.h"
110
+#endif
95 111
 
96 112
 // @section machine
97 113
 

+ 18
- 2
Marlin/example_configurations/makibox/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 18
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration.h Parādīt failu

@@ -97,8 +97,24 @@
97 97
 // build by the user have been successfully uploaded into firmware.
98 98
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
99 99
 #define SHOW_BOOTSCREEN
100
-#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during bootup in line 1
101
-//#define STRING_SPLASH_LINE2 STRING_DISTRIBUTION_DATE // will be shown during bootup in line 2
100
+#define STRING_SPLASH_LINE1 SHORT_BUILD_VERSION // will be shown during boot in line 1
101
+#define STRING_SPLASH_LINE2 WEBSITE_URL         // will be shown during boot in line 2
102
+
103
+//
104
+// *** VENDORS PLEASE READ *****************************************************
105
+//
106
+// Marlin now allow you to have a vendor boot image to be displayed on machine
107
+// start. When SHOW_CUSTOM_BOOTSCREEN is defined Marlin will first show your
108
+// custom boot image and them the default Marlin boot image is shown.
109
+//
110
+// We suggest for you to take advantage of this new feature and keep the Marlin
111
+// boot image unmodified. For an example have a look at the bq Hephestos 2
112
+// example configuration folder.
113
+//
114
+//#define SHOW_CUSTOM_BOOTSCREEN
115
+#if ENABLED(SHOW_BOOTSCREEN) && ENABLED(SHOW_CUSTOM_BOOTSCREEN)
116
+  #include "_Bootscreen.h"
117
+#endif
102 118
 
103 119
 // @section machine
104 120
 

+ 3
- 1
Marlin/macros.h Parādīt failu

@@ -97,6 +97,8 @@
97 97
 #define PENDING(NOW,SOON) ((long)(NOW-(SOON))<0)
98 98
 #define ELAPSED(NOW,SOON) (!PENDING(NOW,SOON))
99 99
 
100
-#define NOOP do{}while(0)
100
+#define NOOP do{} while(0)
101
+
102
+#define CEILING(x,y) (((x) + (y) - 1) / (y))
101 103
 
102 104
 #endif //__MACROS_H

+ 0
- 9
Marlin/ultralcd_implementation_hitachi_HD44780.h Parādīt failu

@@ -443,15 +443,6 @@ unsigned lcd_print(char c) { return charset_mapper(c); }
443 443
     lcd.setCursor(indent, 2); lcd.print('\x02'); lcd_printPGM(PSTR( "------" ));  lcd.print('\x03');
444 444
   }
445 445
 
446
-  void safe_delay(uint16_t del){
447
-    while (del > 50) {
448
-      del -= 50;
449
-      delay(50);
450
-      thermalManager.manage_heater();
451
-    }
452
-    delay(del);
453
-  }
454
-
455 446
   void bootscreen() {
456 447
     byte top_left[8] = {
457 448
       B00000,

+ 33
- 0
Marlin/utility.cpp Parādīt failu

@@ -0,0 +1,33 @@
1
+/**
2
+ * Marlin 3D Printer Firmware
3
+ * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
+ *
5
+ * Based on Sprinter and grbl.
6
+ * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
+ *
8
+ * This program is free software: you can redistribute it and/or modify
9
+ * it under the terms of the GNU General Public License as published by
10
+ * the Free Software Foundation, either version 3 of the License, or
11
+ * (at your option) any later version.
12
+ *
13
+ * This program is distributed in the hope that it will be useful,
14
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+ * GNU General Public License for more details.
17
+ *
18
+ * You should have received a copy of the GNU General Public License
19
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
+ *
21
+ */
22
+
23
+#include "Marlin.h"
24
+#include "temperature.h"
25
+
26
+void safe_delay(uint16_t ms) {
27
+  while (ms > 50) {
28
+    ms -= 50;
29
+    delay(50);
30
+    thermalManager.manage_heater();
31
+  }
32
+  delay(ms);
33
+}

+ 4
- 0
buildroot/bin/restore_configs Parādīt failu

@@ -3,3 +3,7 @@
3 3
 cp Marlin/Configuration.h.backup      Marlin/Configuration.h
4 4
 cp Marlin/Configuration_adv.h.backup  Marlin/Configuration_adv.h
5 5
 cp Marlin/pins_RAMPS_14.h.backup      Marlin/pins_RAMPS_14.h
6
+
7
+if [ -f Marlin/_Bootscreen.h ]; then
8
+  rm Marlin/_Bootscreen.h
9
+fi

+ 5
- 1
buildroot/bin/use_example_configs Parādīt failu

@@ -1,3 +1,7 @@
1 1
 #!/usr/bin/env bash
2 2
 
3
-eval "cp Marlin/example_configurations/$1/Configuration* Marlin/"
3
+eval "cp Marlin/example_configurations/${1}/Configuration* Marlin/"
4
+
5
+if [ -f "Marlin/example_configurations/${1}/_Bootscreen.h" ]; then
6
+  cp "Marlin/example_configurations/${1}/_Bootscreen.h" Marlin/
7
+fi

Notiek ielāde…
Atcelt
Saglabāt