-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for custom (LCD) boot logo. (#55)
* New command: SYS:DISPlay:LOGO * New compile option FANPICO_CUSTOM_LOGO to include custom logo in the firmware. * Compress default LCD logo using RLE compression.
- Loading branch information
Showing
13 changed files
with
187 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* custom.h | ||
Copyright (C) 2022-2023 Timo Kokkonen <[email protected]> | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
This file is part of FanPico. | ||
FanPico is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
FanPico is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with FanPico. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
extern const uint8_t fanpico_custom_lcd_logo_bmp[]; /* ptr to logo image */ | ||
|
||
const display_logo_t custom_lcd_logo_entry = { | ||
"custom", | ||
160, | ||
140, | ||
fanpico_custom_lcd_logo_bmp | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# custom.s | ||
# Copyright (C) 2021-2023 Timo Kokkonen <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
# | ||
# This file is part of FanPico. | ||
# | ||
|
||
# | ||
# Stub for embedding lcd-logo-custom.bmp in the executable. | ||
# | ||
|
||
.global fanpico_custom_lcd_logo_bmp | ||
.global fanpico_custom_lcd_logo_bmp_end | ||
|
||
.section .rodata | ||
|
||
.p2align 4 | ||
fanpico_custom_lcd_logo_bmp: | ||
.incbin "custom.bmp" | ||
fanpico_custom_lcd_logo_bmp_end: | ||
|
||
# eof |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* default.h | ||
Copyright (C) 2022-2023 Timo Kokkonen <[email protected]> | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
This file is part of FanPico. | ||
FanPico is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation, either version 3 of the License, or | ||
(at your option) any later version. | ||
FanPico is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with FanPico. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
extern const uint8_t fanpico_lcd_logo_bmp[]; /* ptr to logo image */ | ||
|
||
const display_logo_t default_lcd_logo_entry = { | ||
"default", | ||
160, | ||
140, | ||
fanpico_lcd_logo_bmp | ||
}; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# lcd-logo.s | ||
# default.s | ||
# Copyright (C) 2021-2023 Timo Kokkonen <[email protected]> | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
@@ -17,7 +17,7 @@ | |
|
||
.p2align 4 | ||
fanpico_lcd_logo_bmp: | ||
.incbin "lcd-logo.bmp" | ||
.incbin "default.bmp" | ||
fanpico_lcd_logo_bmp_end: | ||
|
||
# eof |