Commit Graph
17617 Commits
Author SHA1 Message Date
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
kevinkoenigandRaphael Coeffic 751d1a0887 cleanup of all number edit display handlers. 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic 702a89d952 modifications to make no numberEdit() do their own painting. They all return strings to the numberEdit(). 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic d6d7713000 Fix clicking on topbar 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 98e231c9d4 Fixes for some pop-ups and sliding main views 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic d1d503da08 Remove event bubbling 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic a34bb51590 Update libopenui 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 681c161dd3 Touch events again and some clean-up 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 81366e5ae6 WiP: use tileview in ViewMain 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic b23cb30884 Mandate providing a parent on layout creation 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 7eb1aa8667 libopenui update 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic 9181e5e4e6 fix flight modes 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic a877915138 Fix scrolling 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 2b7a120a86 Fix sliders "getValue" == nullptr 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 731ac128dc Use touch events from LVGL 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 8f68af094c Add slider edit style 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 6dbe059c4e Fix propagating focus from LVGL to libopenui 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 2c39042e16 Use LVGL sliders 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
Raphael CoefficandRaphael Coeffic 865ba72ed0 Snap to main menu icons 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 02c64b07a9 Use LVGL scrolling events 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 90c23a15a5 select fab carousel: fix dimensions 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
kkoenig1@optonline.comandRaphael Coeffic 87472b5a1e additional changges for keyboard processing 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic 7271c4f730 added factory code, and the beginnings of styling 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 169dd1219d reference new libopenui commit 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic 2495691c65 1. Included mroe fonts
2. change order of initialization.  Lvgl has to be before ViewMain
3. Basic support for layers, but they are still broken when Menu's are used
4. Register input driver in lvglwrapper
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
kkoenig1@optonline.comandRaphael Coeffic 35af1cd008 additional changges for keyboard processing 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic 52ec439ca2 added factory code, and the beginnings of styling 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic 528e1a9031 reference new libopenui commit 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic c62655e352 fix issues with layers, still broken 2022-06-11 15:38:08 +02:00
gagarinlgandRaphael Coeffic dd6108a59c remove test code 2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic fd276bb2fc 1. Included mroe fonts
2. change order of initialization.  Lvgl has to be before ViewMain
3. Basic support for layers, but they are still broken when Menu's are used
4. Register input driver in lvglwrapper
2022-06-11 15:38:08 +02:00
kkoenig1@optonline.comandRaphael Coeffic fd3d6c902c updated libopenui submodule to point to gagarinlg/libopenui 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
Peter Feerick 67787afc92 fix(cpn): Ext. mod DSMX not being read/written
Fixes #2014
2022-06-08 20:24:57 +10:00
Peter Feerick 10b16337ca chore(github): Add emoji to labels and missing ver
- Used  labels now have emoji and weren't automatically tagged
- v2.7.1 was missing from the list of options
2022-06-08 19:02:25 +10:00