Commit Graph
141 Commits
Author SHA1 Message Date
b40c40d525 feat: Initial support for UA language translation (#4415)
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2024-01-25 10:12:22 +10:00
philmozandGitHub 79f58cf9ef fix(color): Put LCD buffers at start of SDRAM (#4433) 2023-12-20 13:31:38 +10:00
philmozandGitHub 77e6a7c14f chore(color): Turn off LVGL compression of font data (#4419) 2023-12-18 19:39:56 +10:00
philmozandGitHub ecd50cf5e0 feat(color): Compress font data with LZ4 (#4366) 2023-12-09 13:04:29 +10:00
e18a2a90a4 chore(color): Update fonts (#4375)
Co-authored-by: philmoz <phil.a.mitchell@gmail.com>
2023-12-03 12:27:18 +10:00
philmozandGitHub aa62221fc2 revert(color): Go back to using embedded fonts (#4347) 2023-11-27 21:37:46 +10:00
richardclliandGitHub 7c0f62da09 fix(el18): Missing icon in bootloader (#4328) 2023-11-17 14:24:25 +10:00
philmozandGitHub 6d25dfea48 chore(color): Update CN, TW, JP, HE and RU font files (#4308) 2023-11-13 10:51:28 +10:00
ba30278456 chore: Auto CJK characters extraction for LVGL font generation (#4202)
Co-authored-by: zyren <585668@qq.com>
2023-10-31 10:51:38 +10:00
philmozandGitHub 58573d3315 chore(color): Reduce font FLASH storage (#3881) 2023-10-29 11:29:14 +10:00
kobakirillandGitHub 7322084fb8 feat: Add Russian translation to firmware 🇷🇺 (#4067) 2023-10-20 12:13:45 +10:00
philmozandGitHub 07e9f2384e fix(bw): Font related fixes for B&W radios (#3832)
* Add missing chars to SQT5 extra font image. Fixes language translation issues if using SQT5 font.

* Fix speaker symbol display for CZ translations.
2023-07-28 20:48:47 +10:00
3djcandGitHub 5b1680307d fix(bw): Missing characters in French and Czech translations (#3827)
* fix: fix fr for bw radio

* feat: add utf8 substitution map for French

* fix: fix Czech

* fix: add more Czech substitutions

* Add ň to CZ fonts (thanks to philmoz)
2023-07-28 20:46:09 +10:00
zyrenandGitHub 48c4191794 fix(translation): Add some missing Chinese characters to font (#3618)
Build CN & TW font library, and complete missing Chinese characters
2023-05-23 19:31:55 +10:00
Stav RavivandGitHub dd64aaef2e feat: Hebrew radio translation 🇮🇱 (#3506)
* Hebrew radio translation 🇮🇱

* chore: loop in alphabetical order

* Replace Arial with Arimo

* Add "he" to companion settings
2023-05-14 13:36:53 +10:00
richardclliandGitHub 7e9ac82497 fix: Add missing character to CN/TW font (#3489)
* Added symbol \u5b57.

* Updated fonts files.
2023-04-19 20:11:53 +10:00
zyrenandGitHub eef239e869 chore: Add missing CN & TW Chinese characters to font library (#3395)
Build CN & TW font library, and complete missing Chinese characters
2023-03-23 19:23:07 +10:00
Raphael CoefficandGitHub d417404187 fix(cz): Add Latin1 Extended-A (0x100-0x17F) (#2841)
Fixes #2811
2022-12-11 15:18:11 +10:00
zyrenandGitHub db709b16b8 chore: Update CN & TW font library (#2638) 2022-10-31 20:47:43 +10:00
zyrenandGitHub 0d5ef0bf24 feat: More CN & TW translations (#2519) 2022-10-12 12:22:26 +10:00
786fbcb411 feat: Japanese radio translation 🇯🇵 (#2456)
* Japanese radio translation

`jp.h` based on #2006 (Kudos to @ToshihiroMakuuchi)

* fix: Gyro is now IMU

* Japanese modifications were made to the display. (#2171)

* Update JP translation file

* Update JP fonts

* Fix rotary encoder mode string

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
Co-authored-by: まっく まるちぷろとこる <36994795+ToshihiroMakuuchi@users.noreply.github.com>
2022-10-11 11:42:24 +10:00
Malte LangermannandGitHub f6a00d1845 feat(color): Bigger menu toolbar icons, outlines around menu (#2435)
* chore: add EdgeTX source symbols to 24pt fonts to allow for larger symbols in menu filter toolbars

* chore: Bump `libopenui`
2022-10-01 21:50:04 +10:00
gagarinlg 30c54b48c9 fix(gui): add degree symbol '°' to all fonts 2022-09-25 18:59:34 +02:00
Malte LangermannandGitHub 8b7e8c3017 EL18 RF USB switch (#2221)
* feature: added ability to have radio specific menu items in the bootloader
* added enabling/disabling USB access to the RF module via the bootloader
* enable the internal module on EL18, when RF module USB access is enabled
* moved USB switch pin initialization to the NV14/EL18 specific code
* moved EL18 USB switch defines to boot_menu
* feat: added a symbol for RF USB switch menu option on EL18 bootloader
2022-09-08 08:20:49 +02:00
3b2f07ae85 fix: Danish special characters on B&W radios (#2271)
* Dannish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* Danish special characters

* chore: Reset header to `copyright-header` template
`tools/copyright-header.txt` template is what should be used.
Also added line at EoF to make git happy

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2022-09-07 20:15:08 +10:00
zyrenandGitHub 755d5a0373 chore(translation): Updates to CN and TW for new content (#2151)
* Added new CN and TW translations

* Revised and refined CN & TW translations to fit B&W builds

Revised and refined CN & TW translations to fit B&W builds

* Improved CN translations a bit
2022-07-23 18:33:43 +10:00
Raphael CoefficandRaphael Coeffic f6988c0870 The return of XXL font 2022-06-14 22:58:15 +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
Raphael CoefficandRaphael Coeffic 5a38b626a2 chore(fonts): remove duplicated item in symbols list 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 873b8468bd translations: re-added CJK fonts for CN and TW translations 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic aff1977e24 LZ4: color bitmaps 2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic d65842097c Use arrows from Open Arrow font
See https://yeun.github.io/open-arrow/
2022-06-11 15:38:08 +02:00
Raphael CoefficandRaphael Coeffic 5d08eb45d4 speed: remove font compression on small fonts 2022-06-11 15:38:08 +02:00
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