Commit Graph
108 Commits
Author SHA1 Message Date
Raphael CoefficandRaphael Coeffic ee0c37157d Remove legacy fonts and make the bootloader compile with LVGL 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 98194b0142 colorlcd: some utf8 fixes 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 755617ae1a Moved LVGL to libopenui 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 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 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
zyrenandGitHub 8a988b7f88 fix: Added CN/TW translations, reduced TW text size to fit firmware, TX16 BOR tweak (#1776)
* Added CN/TW translation and reduced TW text size

Added CN/TW translation and reduced TW text size.
Because the TW text causes the firmware to exceed the flash size, reduce the text size.

* Modify the STM32 BOR level on TX16S to avoid system failure in extreme cases

Modify the STM32 BOR level on TX16S to avoid system failure in extreme cases.

* Update cn.h.txt

* Update tw.h.txt
2022-04-01 10:46:09 +10:00
843d1be868 Fix wrong Chinese characters being displayed (#1257)
* Fixed wrong index calculation.

* Fixed font generation, indexing will goes wrong when no extra chars bitmap is present.

* Image width exceeded 16384 will cause trouble in CJK.

* Include libopenui update

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-12-17 10:32:28 +11:00
Raphael CoefficandRaphael Coeffic 92e8baf916 Use autoswitch in SourceChoice as well 2021-06-07 11:08:36 +02:00
Raphael Coeffic b5a73dca51 Small graphic adjustements 2021-06-06 09:04:49 +02:00
Raphael Coeffic da64a36fdd Fixed font bitmap generation 2021-05-30 12:21:22 +02:00
Raphael Coeffic aeb297c800 Use the same font all the way for a specific language 2021-05-08 08:40:02 +02:00
Raphael CoefficandRaphael Coeffic 12ede2ca62 Fixed inverstion issue on radio
Spoiler: only some bitmaps used to be inverted. Added masks and fonts now in inverted mode to use the same functions.
2021-05-06 12:55:59 +02:00
3djc 7d2178cb5c fix chars continued 2020-12-18 20:37:11 +01:00
3djc d7b360673f More font fixes 2020-12-18 08:17:41 +01:00
3djc cd589bc28d fix chars 2020-12-17 18:05:19 +01:00
3djc 204e355d38 Review AFHDS3 option 2020-12-17 18:04:58 +01:00
3djcGitHub3djc <Th1sisfmyofmyo>
87cd9047b1 2.4 continued (#8092)
Quite a bit of work on 2.4

Co-authored-by: 3djc <Th1sisfmyofmyo>
2020-11-14 14:55:37 +04:00
3djc 74a6e579a3 Update chinese translastions 2020-10-12 15:22:08 +02:00
Bertrand Songis 71ec1db9f6 Merge with latest 2.3 2020-06-18 11:14:07 +02:00
3djc d2345aa3fe Fix std font 1px vertical shift 2020-06-01 16:04:10 +02:00
Bertrand Songis bddccb9765 Merge with latest 2.3 2020-05-30 11:57:03 +02:00
3djcandGitHub 61ca2cb64b Review font offset (#7622)
Review font offset
2020-05-22 19:53:22 +02:00
DanielGeAandGitHub 726f310a31 Add es and pt special characters (#7542)
Add special es characters
2020-04-27 10:50:15 +02:00
Bertrand Songis 81ce0398bd Menu black overlay fix (need to give the pointer of the current window) 2019-12-13 20:53:54 +01:00
Bertrand Songis 5ffeb7317e Font cosmetics 2019-12-13 12:11:22 +01:00
Bertrand Songis 20cc9f9c3f Font cosmetics 2019-12-12 17:00:33 +01:00
Bertrand Songis 2589b9e87e Extra chars not displayed 2019-12-12 16:37:50 +01:00
Bertrand Songis 6228110a48 Fonts optimization 2019-12-05 18:58:02 +01:00
Bertrand Songis 54e2221535 Menu overlay 2019-11-29 09:04:06 +01:00
Bertrand Songis 35ea7e138f Avoid to include CN font when not needed 2019-11-08 11:35:20 +01:00
Bertrand Songis e2f84b8047 Cosmetics 2019-10-19 13:03:08 +02:00
Bertrand Songis 3d90a60490 Noto font added 2019-10-02 16:21:50 +02:00
Bertrand Songis 3e2cb83991 Now uses the external libopenui 2019-10-02 14:41:52 +02:00
Bertrand Songis f4f8893ae9 New UI merged 2019-08-28 20:50:14 +02:00
Bertrand Songis 8e02ace29f AVR files removed 2019-04-15 09:12:34 +02:00
Raphael CoefficandBertrand Songis ea898e5122 [Horus] font fixes (#5901)
* avoid generating a blank part for font size that do not have extras

* use “stretch” instead of “jessie”

.. and add libgtest-dev.

* keep space width equal 4, no matter what

* updated generated fonts

* updated reference images

* Replace PyQt completely (#5902)

* ported img2lbm.py to Pillow (and get rid of PyQt)

* removed PyQt from Dockerfile

* fixed travis

* fixed issue with img2lbm and Horus bitmaps
2018-05-21 19:03:15 +02:00
Raphael CoefficandBertrand Songis 526f460cd4 Generate font bitmaps without Qt (using Python Pillow) (#5891)
* Generate font bitmaps without Qt (using Python Pillow)
* Roboto font now default
2018-05-21 10:45:13 +02:00
3djcandBertrand Songis 67817918f4 Add SQT5 that was missing in 2.2 (#5179)
Add SQT5 that was missing in 2.2
2017-09-10 17:17:23 +02:00
3djcandBertrand Songis d4c3ff743b 3djc/x7 draw timer (#4764)
* Use drawText with tiem string like x12s. Change font ':' which where way to large for SMLSIZE

* MIDSIZE ':' lower dot was not horizontaly symetrical, moving it up one pixel

* Make it all ARM

* Let's try not to brake timer adjust

* Fix
2017-04-08 16:59:21 +02:00
3djcandBertrand Songis b18ae12e08 Make smlsize font '.' a single dot and remove corresponding X9 code (#4626) 2017-03-16 18:50:02 +01:00
3djcandBertrand Songis 883ab9a937 Reduce colon size in DBL font (#4540) 2017-03-02 23:27:51 +01:00
Bertrand Songis 89e1dfeeff [Warnings] Removed sRGB warnings raised by libpng 2017-02-27 13:49:35 +01:00
3djcandBertrand Songis 883154dad6 Make dot smaller (#4361) 2017-02-01 09:04:37 +01:00
3djcandBertrand Songis 2a0a75a178 3djc/horus narrow arrows gap (#4183)
* Narrow gap between previous char and up and down arrow in STDSIZE

* Change font generator too and run it once

* Only apply to stdsize
2017-01-02 11:24:43 +01:00
3djcandBertrand Songis d1ef22ee47 3djc/taranis draw number review (#4157)
* Move to Horus style implementation

* TINSIZE handling

* Fix timers

* Add the option to align left on first digit (ie '-' if left of alignment point)

* Compile fix

* Reduce DBL font dot size

* Get ready for PR

* Remove unused function

* Remove leftover declaration

* Performance

* Cosmetics
2016-12-23 23:57:32 +01:00
Andre Bernet aabbc375a3 Add dot and "W" to TINSIZE font 2016-12-18 20:20:39 +01:00
Bertrand Songis 147d042747 [Horus] XXL font is now 64px high 2016-11-19 20:49:06 +01:00