Sfoglia il codice sorgente

Merge pull request #1419 from AnHardt/bootsplash

repair Bootsplash
Scott Lahteine 10 anni fa
parent
commit
baac6e242d

+ 2
- 2
Marlin/Configuration.h Vedi File

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

+ 1
- 3
Marlin/Marlin_main.cpp Vedi File

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

+ 4
- 9
Marlin/dogm_lcd_implementation.h Vedi File

117
 	} while(u8g.nextPage());
117
 	} while(u8g.nextPage());
118
 
118
 
119
   // Show splashscreen
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
   int txtY = u8g.getHeight() - 10;
123
   int txtY = u8g.getHeight() - 10;
123
 	u8g.firstPage();
124
 	u8g.firstPage();
124
 	do {
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
     u8g.setFont(u8g_font_5x8);
128
     u8g.setFont(u8g_font_5x8);
134
 		u8g.drawStr(txtX, txtY, STRING_SPLASH);
129
 		u8g.drawStr(txtX, txtY, STRING_SPLASH);

+ 1
- 1
Marlin/example_configurations/K8200/Configuration.h Vedi File

28
 #define STRING_URL "reprap.org"
28
 #define STRING_URL "reprap.org"
29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
30
 #define STRING_CONFIG_H_AUTHOR "(K8200, CONSULitAS)" // Who made the changes.
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
 // SERIAL_PORT selects which serial port should be used for communication with the host.
33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/SCARA/Configuration.h Vedi File

42
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
42
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
43
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
43
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
44
 // build by the user have been successfully uploaded into firmware.
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
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
47
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
46
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
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
 // SERIAL_PORT selects which serial port should be used for communication with the host.
51
 // SERIAL_PORT selects which serial port should be used for communication with the host.
49
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
52
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/delta/Configuration.h Vedi File

17
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
17
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
18
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
18
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
19
 // build by the user have been successfully uploaded into firmware.
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
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
22
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
21
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
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
 // SERIAL_PORT selects which serial port should be used for communication with the host.
26
 // SERIAL_PORT selects which serial port should be used for communication with the host.
24
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
27
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/makibox/Configuration.h Vedi File

24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
26
 // build by the user have been successfully uploaded into firmware.
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
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
28
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
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
 // SERIAL_PORT selects which serial port should be used for communication with the host.
33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
31
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

+ 3
- 0
Marlin/example_configurations/tvrrug/Round2/Configuration.h Vedi File

24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
24
 // User-specified version info of this build to display in [Pronterface, etc] terminal window during
25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
25
 // startup. Implementation of an idea by Prof Braino to inform user that any changes made to this
26
 // build by the user have been successfully uploaded into firmware.
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
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
29
 #define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time
28
 #define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
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
 // SERIAL_PORT selects which serial port should be used for communication with the host.
33
 // SERIAL_PORT selects which serial port should be used for communication with the host.
31
 // This allows the connection of wireless adapters (for instance) to non-default port pins.
34
 // This allows the connection of wireless adapters (for instance) to non-default port pins.

Loading…
Annulla
Salva