- Posts: 3333
Ultimate Devo F12E (devof12e-XMS) builds
- vlad_vy
- Topic Author
- Offline
FDR wrote: Nice!
Probably we should play with a drawn background, or at least use a one pixel wide image and stretch that...
Example with a drawn background:
< >
We need to do it configurable -> background color and header color. Now it has fixed colors:
void _gui_draw_background(int x, int y, int w, int h)
{
#ifdef _DEVO12_XMS_TARGET_H_
if(y + h < 32) {
LCD_FillRect(x, y, w, h, RGB888_to_RGB565(0x80, 0x80, 0x80));
} else if(y >= 32) {
LCD_FillRect(x, y, w, h, RGB888_to_RGB565(0x90, 0xc0, 0xe0));
} else {
LCD_FillRect(x, y, w, h, RGB888_to_RGB565(0x90, 0xc0, 0xe0));
LCD_FillRect(x, y, w, 32 - y, RGB888_to_RGB565(0x80, 0x80, 0x80));
}
#else
LCD_DrawWindowedImageFromFile(x, y, "media/backgrnd" IMG_EXT, w, h, x, y);
#endif
}
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Is it remarkably faster that way?
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
FDR wrote: Fine.
Is it remarkably faster that way?
I will test it today.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
With some code changes and "config.ini" values:
[background]
drawn_background=1
bg_color=90C0E0
hd_color=808080
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Could you test the speed difference?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
1. devo12-XMS - background draw much faster than normal devo12, I think it even slightly faster or equal to devo8 with image background. At least, now the background draw faster than all GUI objects on a page. It's only brief fraction of a second.
2. devo8 - background draw almost instantly, I can't see this moment. The whole GUI works instantly.
Please Log in or Create an account to join the conversation.
- FDR
- Offline
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
You can select to draw background instead a background image for color GUI. This will greatly speed up the drawing of the pages. You can set header color and background color. The settings are in "config.ini" file. By default used background image.
[background]
drawn_background=0
bg_color=50A0D8
hd_color=707070
"devo12-XMS" based on nightly builds:
(22-02-2018)
File deleted, see below...
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
"devo12-XMS" build updated.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Bisky
- Offline
- Posts: 89
Ultimate 7E + range mod + 3x2 switch mod + 3in1 module
Devo F7 XMS + 4in1 module
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
* Fix color GUI "Voice config" page
* Set drawn background as default for devo12-XMS
"devo12-XMS" based on nightly builds:
(24-02-2018)
File deleted, see below...
Please Log in or Create an account to join the conversation.
- M8A4X
- Offline
- M8A4X
- Posts: 103
Have you selected "Mode 1" in Transmitter menu-->Transmitter config-->Stick mode-->Mode 1 ?
Please Log in or Create an account to join the conversation.
- Bisky
- Offline
- Posts: 89
M8A4X wrote: Hi Bisky!
Have you selected "Mode 1" in Transmitter menu-->Transmitter config-->Stick mode-->Mode 1 ?
Yes...
Ultimate 7E + range mod + 3x2 switch mod + 3in1 module
Devo F7 XMS + 4in1 module
Please Log in or Create an account to join the conversation.
- vlad_vy
- Topic Author
- Offline
- Posts: 3333
...
[safety]
Auto=min
...
Please Log in or Create an account to join the conversation.
- M8A4X
- Offline
- M8A4X
- Posts: 103
BTW: the names of the channels in the remapping-screen do not represent the current selected mapping. You have to remember your current setting and shift them "blind". E.g. if 1. is RUD and you want to move it down, you have to select "1.Ail" and move it down.
Or maybe I am missing the logic behind it...
@Vlad_vy: I flashed your latest FW but my 12S seems still to be loading the background.img. The grey menu "headline" has this "fading" from dark to light grey. Do we have to enable the drawn background somewhere?
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Builds
- Ultimate Devo F12E (devof12e-XMS) builds