Explorar el Código

Merge pull request #1419 from AnHardt/bootsplash

repair Bootsplash
Scott Lahteine hace 10 años
padre
commit
baac6e242d

+ 2
- 2
Marlin/Configuration.h Ver fichero

@@ -24,11 +24,11 @@
24 24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
25 25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
26 26
 // build by the user have been successfully uploaded into firmware.
27
-#define STRING_VERSION "v1.0.2"
27
+#define STRING_VERSION "1.0.2"
28 28
 #define STRING_URL "reprap.org"
29 29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
30 30
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
31
-#define STRING_SPLASH STRING_VERSION " - " STRING_URL // will be shown during bootup
31
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
32 32
 
33 33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
34 34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 1
- 3
Marlin/Marlin_main.cpp Ver fichero

@@ -61,8 +61,6 @@
61 61
 #include <SPI.h>
62 62
 #endif
63 63
 
64
-#define VERSION_STRING  "1.0.0"
65
-
66 64
 // look here for descriptions of G-codes: http://linuxcnc.org/handbook/gcode/g-code.html
67 65
 // http://objects.reprap.org/wiki/Mendel_User_Manual:_RepRapGCodes
68 66
 
@@ -587,7 +585,7 @@ void setup()
587 585
   MCUSR=0;
588 586
 
589 587
   SERIAL_ECHOPGM(MSG_MARLIN);
590
-  SERIAL_ECHOLNPGM(VERSION_STRING);
588
+  SERIAL_ECHOLNPGM(STRING_VERSION);
591 589
   #ifdef STRING_VERSION_CONFIG_H
592 590
     #ifdef STRING_CONFIG_H_AUTHOR
593 591
       SERIAL_ECHO_START;

+ 4
- 9
Marlin/dogm_lcd_implementation.h Ver fichero

@@ -117,18 +117,13 @@ static void lcd_implementation_init()
117 117
 	} while(u8g.nextPage());
118 118
 
119 119
   // Show splashscreen
120
-  int off = (u8g.getWidth() - START_BMPWIDTH) / 2;
121
-  int txtX = (u8g.getWidth() - sizeof(STRING_SPLASH) - 1) / 2;
120
+  int offx = (u8g.getWidth() - START_BMPWIDTH) / 2;
121
+  int offy = (u8g.getHeight() - 18 - START_BMPHEIGHT) / 2;
122
+  int txtX = (u8g.getWidth() - (sizeof(STRING_SPLASH) - 1)*5) / 2; // 5 is fontwidth in pixel
122 123
   int txtY = u8g.getHeight() - 10;
123 124
 	u8g.firstPage();
124 125
 	do {
125
-    #ifdef START_BMPHIGH
126
-		  u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
127
-    #else
128
-      u8g.setScale2x2();
129
-		  u8g.drawBitmapP(off, off, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
130
-      u8g.undoScale();
131
-    #endif
126
+	  u8g.drawBitmapP(offx, offy, START_BMPBYTEWIDTH, START_BMPHEIGHT, start_bmp);
132 127
 			
133 128
     u8g.setFont(u8g_font_5x8);
134 129
 		u8g.drawStr(txtX, txtY, STRING_SPLASH);

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h Ver fichero

@@ -28,7 +28,7 @@
28 28
 #define STRING_URL "reprap.org"
29 29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
30 30
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
31
-#define STRING_SPLASH STRING_VERSION " - " STRING_URL // will be shown during bootup
31
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
32 32
 
33 33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
34 34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/SCARA/Configuration.h Ver fichero

@@ -42,8 +42,11 @@
42 42
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
43 43
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
44 44
 // build by the user have been successfully uploaded into firmware.
45
+#define STRING_VERSION "1.0.2"
46
+#define STRING_URL "reprap.org"
45 47
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
46 48
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
49
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
47 50
 
48 51
 // SERIAL_PORT selects which serial port should be used for communication with the host.
49 52
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/delta/Configuration.h Ver fichero

@@ -17,8 +17,11 @@
17 17
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
18 18
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
19 19
 // build by the user have been successfully uploaded into firmware.
20
+#define STRING_VERSION "1.0.2"
21
+#define STRING_URL "reprap.org"
20 22
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
21 23
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
24
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
22 25
 
23 26
 // SERIAL_PORT selects which serial port should be used for communication with the host.
24 27
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/makibox/Configuration.h Ver fichero

@@ -24,8 +24,11 @@
24 24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
25 25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
26 26
 // build by the user have been successfully uploaded into firmware.
27
+#define STRING_VERSION "1.0.2"
28
+#define STRING_URL "reprap.org"
27 29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
28 30
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
31
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
29 32
 
30 33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
31 34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Ver fichero

@@ -24,8 +24,11 @@
24 24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
25 25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
26 26
 // build by the user have been successfully uploaded into firmware.
27
+#define STRING_VERSION "1.0.2"
28
+#define STRING_URL "reprap.org"
27 29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
28 30
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
31
+#define STRING_SPLASH "v" STRING_VERSION " - " STRING_URL // will be shown during bootup
29 32
 
30 33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
31 34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

Loading…
Cancelar
Guardar