Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Merge requests
!79
Faultscreen
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Faultscreen
msgctl/faultscreen
into
master
Overview
18
Commits
5
Pipelines
3
Changes
13
Closed
Mateusz Zalega
requested to merge
msgctl/faultscreen
into
master
5 years ago
Overview
17
Commits
5
Pipelines
3
Changes
13
Expand
0
0
Merge request reports
Compare
master
version 2
9d0b6005
5 years ago
version 1
ab7b44e0
5 years ago
master (base)
and
latest version
latest version
4b847348
5 commits,
5 years ago
version 2
9d0b6005
5 commits,
5 years ago
version 1
ab7b44e0
20 commits,
5 years ago
13 files
+
304
−
43
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
13
Search (e.g. *.vue) (Ctrl+P)
Conflict: This file was modified in both the source and target branches. Ask someone with write access to resolve it.
bootloader/bootloader-display.c
+
10
−
23
Options
@@ -6,31 +6,18 @@
#include
"gfx.h"
#include
"display.h"
/*
* "Decompress" splash-screen image. The algorithm works as follows:
*
* Each byte encodes up to 127 pixels in either white or black. The most
* significant bit determines the color, the remaining 7 bits determine the
* amount.
*/
static
void
bootloader_display_splash
(
void
)
{
int
idx
=
0
;
Color
white
=
gfx_color
(
&
display_screen
,
WHITE
);
Color
black
=
gfx_color
(
&
display_screen
,
BLACK
);
for
(
int
i
=
0
;
i
<
sizeof
(
splash
);
i
++
)
{
Color
color
=
(
splash
[
i
]
&
0x80
)
?
white
:
black
;
uint8_t
length
=
splash
[
i
]
&
0x7f
;
for
(
int
j
=
0
;
j
<
length
;
j
++
)
{
uint16_t
x
=
idx
%
160
;
uint16_t
y
=
idx
/
160
;
gfx_setpixel
(
&
display_screen
,
x
,
y
,
color
);
idx
++
;
}
}
gfx_copy_region
(
&
display_screen
,
0
,
0
,
160
,
80
,
GFX_RLE_MONO
,
sizeof
(
splash
),
(
const
void
*
)(
splash
)
);
gfx_update
(
&
display_screen
);
}
Loading