Skip to content

Creating Custom (LCD) Boot Logo

Timo Kokkonen edited this page Oct 8, 2023 · 3 revisions

FanPico supports custom boot logo for LCD screen (starting from firmware version 1.5.1).

How Boot Logos Work

When LCD screen is active during boot (or reset) a boot logo along with FanPico model and firmware version is displayed for short time. It is possible to use custom logo added during compiling of the firmware to be displayed instead of the default FanPico logo.

fanpico-custom-logo

Boot Logo Image

Boot logo image should be smaller than the screen resolution. Ideally logo should be smaller than 320x240 so it will work with both 320x240 and 480x320 resolution displays.

Image must be a 8-bit BMP (Windows Bitmap) file (ideally with RLE compression to save firmware file space).

Creating Custom Boot Logo

To create a custom boot logo, a new logo with suitable size as 4bit (16 color) or 8bit (256 color) Windows Bitmap (.bmp) image is needed.

One way to add RLE compression to a BMP file is to use: rlec

Next copy the new logo in src/logos/ directory as:

custom.bmp

Update Header File for the Logo

Next update src/logos/custom.h with image width and height (in pixels).

For example if the logo image is 200x130 pixels update custom.h as follows:

const display_logo_t custom_lcd_logo_entry = {
	"custom",
	200,
	130,
	fanpico_custom_lcd_logo_bmp
};

Compile Firmware With The Custom Logo

Next we need to set compile option FANPICO_CUSTOM_LOGO=1 to include our custom logo in the firmware image.

We compile firmware as normal except we add DFANPICO_CUSTOM_LOGO option to parameters for cmake command.

For example:

$ mkdir build
$ cd build
$ cmake -DFANPICO_BOARD=0804D -DPICO_BOARD=pico_w -DFANPICO_CUSTOM_LOGO=1 ..
$ make -j

Activating Custom Logo

After firmware with custom logo is installed on a FanPco unit, it can be enabled using SYS:DISP:LOGO command.

For example:

SYS:DISP:LOGO custom
CONF:SAVE
*RST