Making your own splash screen
- cre8tiveleo
- Posts: 1434
- Joined: Tue Dec 27, 2011 6:13 pm
- Country: -
- Location: Ontario,(GTA North)
- Contact:
Making your own splash screen
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.
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.
Re: Making your own splash screen
I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?
Reinhard
Are there any windows programs, that can create these file types?
Reinhard
- 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
Try GimpReSt wrote:I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?
Reinhard
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!
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
- cre8tiveleo
- Posts: 1434
- Joined: Tue Dec 27, 2011 6:13 pm
- Country: -
- Location: Ontario,(GTA North)
- Contact:
Re: Making your own splash screen
ReSt wrote:I don't know XBM or LBM file formats.
Are there any windows programs, that can create these file types?
Reinhard
Gimp , as mentioned, is a good programme to that with.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)...
Re: Making your own splash screen
Thanks,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?
ReinhardGimp , as mentioned, is a good programme to that with.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)...
I'll give it a try
Reinhard
Re: Making your own splash screen
Tried to create a splashscreen (created a s9xsplash.xbm grafik file with GIMP)
But process fails
(As said, I'm running on Win X= SP2)
Reinhard
But process fails
What am I missing?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
(As said, I'm running on Win X= SP2)
Reinhard
- MikeB
- 9x Developer
- Posts: 18067
- Joined: Tue Dec 27, 2011 1:24 pm
- Country: -
- Location: Poole, Dorset, UK
Re: Making your own splash screen
Have you installed ruby? It is a scripting program that does this conversion.
Mike.
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
The difficult we do immediately,
The impossible takes a little longer!
- cre8tiveleo
- Posts: 1434
- Joined: Tue Dec 27, 2011 6:13 pm
- Country: -
- Location: Ontario,(GTA North)
- Contact:
Re: Making your own splash screen
That was the reason whyMikeB wrote:Have you installed ruby? It is a scripting program that does this conversion.
Mike.
Installed it and it's working now
-
- Posts: 2
- Joined: Sat Jan 20, 2024 6:46 pm
- Country: -
Re: Making your own splash screen
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.
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.
Re: Making your own splash screen
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.
-
- Posts: 2
- Joined: Sat Jan 20, 2024 6:46 pm
- Country: -
Re: Making your own splash screen
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++;
}
}
}
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++;
}
}
}
-
- Posts: 2
- Joined: Tue Feb 27, 2024 6:12 am
- Country: -
Re: Making your own splash screen
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.
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.