Making your own splash screen

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
Post Reply
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Making your own splash screen

Post by cre8tiveleo »

There are two methods of doing this.

1)
Use the latest version of eepe and use its built in function to replace your splash screen prior to burning.
You require fw rev 652 or higher to work.
You can import jpeg or bmp files. 128x64 is the perfect size.
Make sure they are B/w only. no levels of gray(grey)
If you use a jpg file, do not use any compression, the artifacting may cause undesirable splash screens

2)
Create a XBM bitmap file that is monochrome and 128x64 in size. (GIMP is a good program for handling XBM files).
Save your file as "s9xsplash.xbm" in the src folder.
Run "make s9xsplash.lbm" (this will convert the XBM file to the lbm format)
Run "make" with whatever options you need.
Once "make" finishes - the FW will be in the er9x.hex file in the src directory.


*** Don't forget , you need RUBY to compile your ilb file. ***

These instructions can be found on the er9x google pages.. project main page, on the bottom of the page, a long scroll down... I'm not a scroller, so I didn't see these until now... ;)

http://code.google.com/p/er9x/


That's it, HAPPY SPLASHING.
Last edited by cre8tiveleo on Sat Jan 07, 2012 2:45 pm, edited 6 times in total.

ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Making your own splash screen

Post by ReSt »

I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?

Reinhard
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Re: Making your own splash screen

Post by Rob Thomson »

ReSt wrote:I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?

Reinhard
Try Gimp

http://www.gimp.org/windows/


Rob
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Making your own splash screen

Post by cre8tiveleo »

ReSt wrote:I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?

Reinhard
cr8tive_leo wrote:Making your own splash screen

Create a XBM bitmap file that is monochrome and 128x64 in size. (GIMP is a good program for handling XBM files)...
Gimp , as mentioned, is a good programme to that with.

:)
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Making your own splash screen

Post by ReSt »

cr8tive_leo wrote:
ReSt wrote:I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?

Reinhard
cr8tive_leo wrote:Making your own splash screen

Create a XBM bitmap file that is monochrome and 128x64 in size. (GIMP is a good program for handling XBM files)...
Gimp , as mentioned, is a good programme to that with.

:)
Thanks,
I'll give it a try

Reinhard

ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Making your own splash screen

Post by ReSt »

Tried to create a splashscreen (created a s9xsplash.xbm grafik file with GIMP)

But process fails
make s9xsplash.lbm

Convert splash screen from xbm to lbm:

ruby ../util/xbm2lbm.rb s9xsplash.xbm
process_begin: CreateProcess(NULL, ruby ../util/xbm2rbm.rb s9xsplash.xbm, ...) failed
make (e=2): Das System kann die angegebene Datei nicht finden. (File not found)
make: *** [s9xsplash.lbm] Error 2
What am I missing?
(As said, I'm running on Win X= SP2)

Reinhard
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Making your own splash screen

Post by MikeB »

Have you installed ruby? It is a scripting program that does this conversion.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Making your own splash screen

Post by cre8tiveleo »

Easier method...

viewtopic.php?f=17&t=138
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Making your own splash screen

Post by ReSt »

MikeB wrote:Have you installed ruby? It is a scripting program that does this conversion.

Mike.
That was the reason why :)

Installed it and it's working now
Attachments
SIMPLE.JPG
PLANE.JPG
roskonedelchev1
Posts: 2
Joined: Sat Jan 20, 2024 6:46 pm
Country: -

Re: Making your own splash screen

Post by roskonedelchev1 »

Hello, can someone help me with information on exactly how to generate a .LBM or .XBM file. I'm trying to make a splash screen using GIMP, but in the generated file it arranges the pixels in horizontal order, and the library I use requires that every byte be in vertical order.

When I generate a file with one horizontal line one pixel thick by 64 pixels long, then a line 8 pixels wide and 8 pixels long appears on my radio control screen.
Screenshot 2024-01-20 205953.jpg
(8.99 KiB) Not downloaded yet
Screenshot 2024-01-20 210548.jpg
(9.15 KiB) Not downloaded yet
User avatar
Kilrah
Posts: 11109
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Making your own splash screen

Post by Kilrah »

The companion app for er9x/opentx can take a jpg/png and swap them in for the built in splash, no need to make an xbm/lbm.
roskonedelchev1
Posts: 2
Joined: Sat Jan 20, 2024 6:46 pm
Country: -

Re: Making your own splash screen

Post by roskonedelchev1 »

Won't this app import the image into the .HEX or .BIN file of firmware? I need to convert the image to a bitmap to use for my project trying to build for FS I6. The problem is that the library that is available for this screen draws the bytes in a vertical order and the standard .XBM files that I generate with GIMP are not visualized as they should be.

This code is set in the library to draw the screen.

void lcdDrawBitmap(coord_t x, coord_t y, const uint8_t * img, coord_t offset, coord_t width)
{
const uint8_t *q = img;
uint8_t w = *q++;
if (!width || width > w) {
width = w;
}
if (x+width > LCD_W) {
if (x >= LCD_W ) return;
width = LCD_W-x;
}
uint8_t rows = (*q++ + 1) / 2;

for (uint8_t row=0; row<rows; row++) {
q = img + 2 + row*w + offset;
uint8_t *p = &displayBuf[(row + (y/2)) * LCD_W + x];
for (coord_t i=0; i<width; i++) {
if (p >= DISPLAY_END) return;
uint8_t b = *q++;
if (y & 1) {
*p = (*p & 0x0f) + ((b & 0x0f) << 4);
if ((p+LCD_W) < DISPLAY_END) {
*(p+LCD_W) = (*(p+LCD_W) & 0xf0) + ((b & 0xf0) >> 4);
}
}
else {
*p = b;
}
p++;
}
}
}
Ushavilash
Posts: 2
Joined: Tue Feb 27, 2024 6:12 am
Country: -

Re: Making your own splash screen

Post by Ushavilash »

Hey you can use the latest version of eepe and replace your splash screen before burning. Check your file is 128x64 monochrome, and if using JPEG Compressor.
Create a monochrome XBM bitmap file sized 128x64 using software like GIMP. Save it as s9xsplash.xbm in the src folder, then convert it to LBM format using make s9xsplash.lbm and run make to generate the firmware.

Post Reply

Return to “er9x”