Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
marlin-anet-a8
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonas Leder
marlin-anet-a8
Commits
86467c24
Commit
86467c24
authored
Feb 6, 2016
by
Scott Lahteine
Browse files
Options
Downloads
Patches
Plain Diff
On wider screens show a wider splash page, if possible
parent
404c36c3
Branches
Branches containing commit
Tags
1.16.3
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Marlin/ultralcd_implementation_hitachi_HD44780.h
+41
-12
41 additions, 12 deletions
Marlin/ultralcd_implementation_hitachi_HD44780.h
with
41 additions
and
12 deletions
Marlin/ultralcd_implementation_hitachi_HD44780.h
+
41
−
12
View file @
86467c24
...
@@ -445,6 +445,13 @@ unsigned lcd_print(char c) { return charset_mapper(c); }
...
@@ -445,6 +445,13 @@ unsigned lcd_print(char c) { return charset_mapper(c); }
}
}
}
}
inline
void
logo_lines
(
const
char
*
extra
)
{
int
indent
=
(
LCD_WIDTH
-
8
-
lcd_strlen_P
(
extra
))
/
2
;
lcd
.
setCursor
(
indent
,
0
);
lcd
.
print
(
'\x00'
);
lcd_printPGM
(
PSTR
(
"------"
));
lcd
.
print
(
'\x01'
);
lcd
.
setCursor
(
indent
,
1
);
lcd_printPGM
(
PSTR
(
"|Marlin|"
));
lcd_printPGM
(
extra
);
lcd
.
setCursor
(
indent
,
2
);
lcd
.
print
(
'\x02'
);
lcd_printPGM
(
PSTR
(
"------"
));
lcd
.
print
(
'\x03'
);
}
static
void
bootscreen
()
{
static
void
bootscreen
()
{
show_bootscreen
=
false
;
show_bootscreen
=
false
;
byte
top_left
[
8
]
=
{
byte
top_left
[
8
]
=
{
...
@@ -494,23 +501,45 @@ unsigned lcd_print(char c) { return charset_mapper(c); }
...
@@ -494,23 +501,45 @@ unsigned lcd_print(char c) { return charset_mapper(c); }
lcd
.
clear
();
lcd
.
clear
();
#define TEXT_SCREEN_LOGO_SHIFT ((LCD_WIDTH/2) - 4)
#define LCD_EXTRA_SPACE (LCD_WIDTH-8)
lcd
.
setCursor
(
TEXT_SCREEN_LOGO_SHIFT
,
0
);
lcd
.
print
(
'\x00'
);
lcd_printPGM
(
PSTR
(
"------"
));
lcd
.
print
(
'\x01'
);
lcd
.
setCursor
(
TEXT_SCREEN_LOGO_SHIFT
,
1
);
lcd_printPGM
(
PSTR
(
"|Marlin|"
));
lcd
.
setCursor
(
TEXT_SCREEN_LOGO_SHIFT
,
2
);
lcd
.
print
(
'\x02'
);
lcd_printPGM
(
PSTR
(
"------"
));
lcd
.
print
(
'\x03'
);
delay
(
2000
);
#ifdef STRING_SPLASH_LINE1
#ifdef STRING_SPLASH_LINE1
// Combine into a single splash screen if possible
if
(
LCD_EXTRA_SPACE
>=
strlen
(
STRING_SPLASH_LINE1
)
+
1
)
{
logo_lines
(
PSTR
(
" "
STRING_SPLASH_LINE1
));
#ifdef STRING_SPLASH_LINE2
lcd_erase_line
(
3
);
lcd_erase_line
(
3
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE1
),
LCD_WIDTH
,
1000
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE2
),
LCD_WIDTH
,
2000
);
#else
delay
(
2000
);
#endif
#endif
}
else
{
logo_lines
(
PSTR
(
""
));
lcd_erase_line
(
3
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE1
),
LCD_WIDTH
,
1500
);
#ifdef STRING_SPLASH_LINE2
#ifdef STRING_SPLASH_LINE2
lcd_erase_line
(
3
);
lcd_erase_line
(
3
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE2
),
LCD_WIDTH
,
1
0
00
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE2
),
LCD_WIDTH
,
1
5
00
);
#endif
#endif
}
}
#elif defined(STRING_SPLASH_LINE2)
// Combine into a single splash screen if possible
if
(
LCD_EXTRA_SPACE
>=
strlen
(
STRING_SPLASH_LINE2
)
+
1
)
{
logo_lines
(
PSTR
(
" "
STRING_SPLASH_LINE2
));
delay
(
2000
);
}
else
{
logo_lines
(
PSTR
(
""
));
lcd_erase_line
(
3
);
lcd_scroll
(
0
,
3
,
PSTR
(
STRING_SPLASH_LINE2
),
LCD_WIDTH
,
2000
);
}
#else
logo_lines
(
PSTR
(
""
));
delay
(
2000
);
#endif
}
#endif // SHOW_BOOTSCREEN
#endif // SHOW_BOOTSCREEN
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment