Commit Graph
100 Commits
Author SHA1 Message Date
Malte Langermann afcfa0b0dc fix: again, try to fix companion/simulaotr issues 2025-01-18 20:58:49 +01:00
Malte Langermann 4a6ba60265 fix(companion): fix build issues 2025-01-18 19:06:06 +01:00
gagarinlg 29aa08bbd7 fix: add jinja2 to companion win32 build environment 2023-06-25 14:46:43 +02:00
gagarinlgandMalte Langermann 0ded1bfdff fix: address sanitizer error when running color LCD tests 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 22c09dbe6e fix: add NV14 switch definitions 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 3cd6465bb1 fix: missing/wrong entries in HW definition 2023-06-25 14:32:39 +02:00
gagarinlgandMalte Langermann 78c9ce615e fix: initialisation order when starting the simu, first initialise, then read ADC data 2023-06-25 14:32:39 +02:00
gagarinlg 3ca63cbb9b chore(libopenui): update license 2023-05-18 14:56:37 +02:00
gagarinlg 1e2b4db1d2 chore(libopenui): replace license files 2023-05-18 14:55:56 +02:00
gagarinlg e77909e17f chore(libopenui): add submodules used by libopenui 2023-05-18 14:53:20 +02:00
gagarinlg 2418f1114e chore: pull libopenui into the EdgeTX repository 2023-05-18 14:49:35 +02:00
gagarinlg 843e42b964 chore: remove libopenui submodule 2023-05-18 14:48:41 +02:00
gagarinlg 30c54b48c9 fix(gui): add degree symbol '°' to all fonts 2022-09-25 18:59:34 +02:00
gagarinlgandRaphael Coeffic e6697bca89 fix: center splash screen 2022-08-29 07:09:04 +02:00
gagarinlg 4084497c70 fix: use libopenui with working pixel draw check 2022-07-26 21:12:29 +02:00
gagarinlgandRaphael Coeffic 4d34becd2c fix: the check to prevent out of screenbuffer drawing did not work 2022-07-25 10:28:39 +02:00
gagarinlg bc12aa2b6d fix: compilation with -DDEBUG_WINDOWS enabled 2022-07-24 16:36:51 +02:00
gagarinlg d76c6415c9 fix compilation with -DDEBUG_WINDOWS 2022-07-24 16:26:58 +02:00
gagarinlgandRaphael Coeffic 10c851469a remove unneeded touch IC reset, reduce boot time by 300ms 2022-06-25 16:09:04 +02:00
gagarinlgandRaphael Coeffic 778f478686 fix NV14 touch driver 2022-06-25 16:09:04 +02:00
gagarinlgandRaphael Coeffic b86f235476 remove prepare.sh shell script 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 5fe7de17bb switch radio hardware page to flex layout 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 32c1789c73 fix greater or equal char for B&W radios
add support for three byte UTF-8 sequences to utf-8 converter
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 5de7a77720 adapt to changed button behavior 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 93797a3e14 add ≥ char to the fonts
fix logic switch select box texts for all languages
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 1df4d43eb3 finalize radio setup page 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 8f39838e00 radio setup almost finished 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 836c8bd97f more radio setup work 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 9962b73895 continued radio setup rework 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 1abf71efce WIP radio setup page, continued rework 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 23ef7a9609 WIP radio setup screen rework 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic df366e442a mark ViewMain and OPAQUE, to enable regular event checking 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic f25dbdbd7e model select button focus fix 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic bde100b18c fix tab group delete/add tabs 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 5d79b9cd38 use new libopenui commit 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic c008dfe19d fix NV14 firmware build 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 4af17b49c8 fix nullptr access in curve edit 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 6fade548fc reduce button padding by 1 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic c29ec6edfe menu tabs header now uses lvgl buttons and supports scrolling. buttons are slightly wider now 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 0677c3e703 fix T8 compilation 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic cbea1d5863 update libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic dec89b56c2 fiy simu and firmware compilation issues for different radios 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 4ec3304969 fix missing include 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 0eb11ae4b6 bootload compile fixes for B&W radios, compiles, but does not linkm due to libc errors 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 89ff8c53f4 fix shutdown animation 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 809480bc6a fix fatal error screens with LVGL 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 40641e5787 fix channel order display in radio_setup 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 19ed068d92 remove stray , 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 16f8730b67 add missing translation conversion 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic a025a16467 jitter filter params are accessed by diaganas 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 7d94fac6d2 fix merge error 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 9fbd291458 fix merge problems 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic d515e57fc4 DMAWait mockup in simulcd 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic f410c2cea9 NV14 charging animation 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 8d6a7c2da5 preparation for PL18, differentiate between physical and UI screen size
adapt to partial draw calls from LVGL
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic acc517a684 some more font work 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic d17901f7ab reenable LVGL rotary encoder code
libopenui update
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 7ab07262b2 add missing glyphs to fonts 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 073d20cd7c extra char changes 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 6999e30171 update libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 39b2a40f4e fix CMakeList for new lvgl version 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 1d9d112e31 update to lvgl 8.2, switch to official github repo 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic d075d57bfd libopenui update 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 29492ae960 libopenui lvgl udpate 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic dbd528e92b libopenui update 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic c5d2439e61 use current libopenui/lvgl
enable BMP and PNG support in lvgl
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 9571a3c97f prepared to use rotary encoder events in lvgl, not enbaled because of focus issues 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 7eb1aa8667 libopenui update 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 108dbc747b fix outputs widget vertical line drawing 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic b3f6b92408 udpate libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 59e68ae8c6 switch libopenui to use EdgeTX/libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 9633f3cfeb use updated libopenui
fix libopenui/lvgl run order
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic eceab2eeb6 use current libopenui state 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 82051f6149 touch fixes for LVGL 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic daa957bb47 use the canvas image buffer to draw libopenui, one screen operation less per draw call 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 0844e8d480 use fixed libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 169dd1219d reference new libopenui commit 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 6864954c84 use current libopenui state 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic f6c7607cc2 touch fixes for LVGL 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 06f72c3ce6 use the canvas image buffer to draw libopenui, one screen operation less per draw call 2022-06-11 15:38:08 +02:00
Malte LangermannandRaphael Coeffic 0c7d4cf1e9 use fixed libopenui 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 528e1a9031 reference new libopenui commit 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic dd6108a59c remove test code 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 4ef2e50563 add missing file to colorlcd CMakelist 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic bf4b5dca93 use libopenui lvgl branch
remove now unneeded help.txt
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 810bb9748d use specific branch for lvgl 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic fb7a7364a4 just something to play with lvgl
simu is working partially
TX16S has worked, is now broken, due to changes to make simu work

working means, lvgl shows something on the display and handles touch events

to stop libopenui from interfering this is needed in libopenui:

diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 09cc3d3..cda095f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -79,7 +79,7 @@ void MainWindow::checkEvents()
   if (touchPanelEventOccured()) {
     short lastDeltaX = touchState.lastDeltaX;
     short lastDeltaY = touchState.lastDeltaY;;
-    touchState = touchPanelRead();
+    //touchState = touchPanelRead();
     touchState.lastDeltaX = lastDeltaX;
     touchState.lastDeltaY = lastDeltaY;
   }
@@ -177,6 +177,7 @@ void MainWindow::invalidate(const rect_t & rect)

 bool MainWindow::refresh()
 {
+return false;
   if (invalidatedRect.w) {
     if (invalidatedRect.x > 0 || invalidatedRect.y > 0 || invalidatedRect.w < LCD_W || invalidatedRect.h < LCD_H) {
       TRACE_WINDOWS("Refresh rect: left=%d top=%d width=%d height=%d", invalidatedRect.left(), invalidatedRect.top(), invalidatedRect.w, invalidatedRect.h);

add eclipse projetc files and helper scripts

some cleanup and fix simu

NV14 simu and TX16s simu are working with lvgl
no more magic numbers
added files for a lvgl wrapper class for initialization

moved lvgl initialization to LvglWrapper
code cleanup
started implementing a widget as a drawing target for libopenui

with some additional changesin libopenui, the libopenui ui can be displayed on a lvgl canvas

fix lvgl full screen canvas

update personal project files

add file with patch instructions for libopenui

works on NV14 with a canvas as the drawingtarget for libopenui and direct touch handling by libopenui

fix indentation

enabled double buffering for LVGL using the LCD frame buffers
transparancies are broken on TX16s
simulator does not work
untested on NV14

simu for NV14 and TX16S run and work mostly
works mostly on NV14 and TX16S

some pop ups (e.g. USB) flicker
LUA full screen apps won't display anything

touch handling still done by libopenui
on TX16S lvgl widgets are rotated by 180°

untested on all other radios

fix using of commeted out function. No touch handling for LVGL right now

rotate screens, so that libopenui and LVGL have the same screen rotation

removed the need to rotate images and fonts when using LVGL
currently the changes can be easily reverted

deleted lvgl copy

building with lvgl as unmodified submodule works

move lv_conf to radio/src

delete eclipse project files

use specific branch for lvgl

use libopenui lvgl branch
remove now unneeded help.txt

add missing file to colorlcd CMakelist

fix image display problems in TX16S simulator

just something to play with lvgl
simu is working partially
TX16S has worked, is now broken, due to changes to make simu work

working means, lvgl shows something on the display and handles touch events

to stop libopenui from interfering this is needed in libopenui:

diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 09cc3d3..cda095f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -79,7 +79,7 @@ void MainWindow::checkEvents()
   if (touchPanelEventOccured()) {
     short lastDeltaX = touchState.lastDeltaX;
     short lastDeltaY = touchState.lastDeltaY;;
-    touchState = touchPanelRead();
+    //touchState = touchPanelRead();
     touchState.lastDeltaX = lastDeltaX;
     touchState.lastDeltaY = lastDeltaY;
   }
@@ -177,6 +177,7 @@ void MainWindow::invalidate(const rect_t & rect)

 bool MainWindow::refresh()
 {
+return false;
   if (invalidatedRect.w) {
     if (invalidatedRect.x > 0 || invalidatedRect.y > 0 || invalidatedRect.w < LCD_W || invalidatedRect.h < LCD_H) {
       TRACE_WINDOWS("Refresh rect: left=%d top=%d width=%d height=%d", invalidatedRect.left(), invalidatedRect.top(), invalidatedRect.w, invalidatedRect.h);

add eclipse projetc files and helper scripts

some cleanup and fix simu

NV14 simu and TX16s simu are working with lvgl
no more magic numbers
added files for a lvgl wrapper class for initialization

moved lvgl initialization to LvglWrapper
code cleanup
started implementing a widget as a drawing target for libopenui

with some additional changesin libopenui, the libopenui ui can be displayed on a lvgl canvas

fix lvgl full screen canvas

update personal project files

add file with patch instructions for libopenui

works on NV14 with a canvas as the drawingtarget for libopenui and direct touch handling by libopenui

fix indentation

enabled double buffering for LVGL using the LCD frame buffers
transparancies are broken on TX16s
simulator does not work
untested on NV14

simu for NV14 and TX16S run and work mostly
works mostly on NV14 and TX16S

some pop ups (e.g. USB) flicker
LUA full screen apps won't display anything

touch handling still done by libopenui
on TX16S lvgl widgets are rotated by 180°

untested on all other radios

fix using of commeted out function. No touch handling for LVGL right now

rotate screens, so that libopenui and LVGL have the same screen rotation

removed the need to rotate images and fonts when using LVGL
currently the changes can be easily reverted

deleted lvgl copy

building with lvgl as unmodified submodule works

move lv_conf to radio/src

delete eclipse project files
2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 8f63932e43 don't always stretch sliders 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 1ab128e084 let sliders and text always stretch to a grid cel, if used in a grid layout
add padding on the right side in grid layouts
2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic c1e143c4fd attach windo focusHandler to LVGL events 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic d58fbe8c86 fix simu compilation on linux 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 44b508ebc8 fix not updated dynamic text 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 9d45303531 make button lvgl-Event aware 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 3486480f36 LVGL rotarty encoder handling updated
LVGL rotary encoder handling disabled, to reenable un-comment windowcpp
Window::checkEvents the call to lvglPushEncoderEvent
2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic ac5a7bef0d use roboto font 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic f7c0d58281 use roboto font 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic ff4cde159e remove libopenui paint implementation for lvgl-elements 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic a4bb55adc2 remove outline from numberedit 2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic 4206bf9e94 fix crash when exiting page with number edit
disable setting lvgl group focus
2022-06-11 15:13:11 +02:00
gagarinlgandRaphael Coeffic a363e89fba prepared using the roller via lvgl 2022-06-11 15:13:11 +02:00