Commit Graph
77 Commits
Author SHA1 Message Date
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
gagarinlg 9fea53702a force touch screen to be on in full screen dialogs
reset backlight timeout when changing backlight settings
2022-01-20 12:40:58 +01:00
gagarinlg ea29a68f23 force backlight on when displaying full screen dialogs
fixes #1428
2022-01-18 14:06:42 +01:00
gagarinlgandRisto 48a9336060 fix Ubuntu 20.04 prepare script, libclang-11-dev was missing in the package list 2022-01-05 17:10:19 +01:00
gagarinlgandPeter Feerick 22112de372 fix touch slide deltaX/deltaY not resetting 2021-11-22 11:44:12 +10:00
Malte LangermannandPeter Feerick 849cc5d5b3 fix simu and simulator touch slide 2021-11-18 10:55:41 +10:00
gagarinlgandPeter Feerick f70814c778 code cleanup 2021-11-16 11:21:04 +10:00
gagarinlgandPeter Feerick 8360434516 touch on/off with backlight on/off is now working for TX16s, untested, but implemented for NV14
simulator for tX16s and NV14 works
2021-11-16 11:21:04 +10:00
gagarinlgandPeter Feerick ced9df9510 started implementing backlight tracking (unfinished)
horus touch driver internally tracks touch state and returns the state on read to make in independed of the mainwindow touchState
2021-11-16 11:21:04 +10:00