Commit Graph
3497 Commits
Author SHA1 Message Date
Peter Feerick 0420d2519e Apply code formatter 2021-09-08 21:50:11 +10:00
Peter Feerick d4628ca78d Update copyright header 2021-09-08 21:37:01 +10:00
Peter Feerick 49b91431fe Set more sensible default colors for output widget
And also allow colors to be customised!
Fixes #663
2021-09-01 20:44:50 +10:00
Peter Feerick 9a2461c7e9 Shows pot and sliders on own line, change colour
Use theme primary colour (def. black) rather than warning (def. red)
Show pot/slider list on own row, under switches
2021-09-01 14:10:40 +10:00
Peter Feerick 071ec6299f Make pots/sliders warnings not big.
Still needs a proper helper though.
2021-09-01 11:15:50 +10:00
Jesper FrickmannandGitHub cea723c56e Do not reload bitmps during theme update, unless reload argument is true (#661)
* Do not reload bitmps during theme update, unless reload argument is true
Trying to optimize speed for theme color changes.
FlySky is not optimized yet.

* Do not update theme from Lua lcd.setColor(CUSTOM_COLOR, x)
Some widgets like e.g. Timer2 constantly change CUSTOM_COLOR, and this seems to slow down things

* Lua function lcd.setColor() only updates if color is changed
To avoid that scripts calling lcd.setColor() repeatedly trash performance
2021-09-01 11:10:52 +10:00
cf91c87c77 [Colorlcd] Pot and slider model setup settings implemented (#654)
* Pots and sliders warning implemented. #647

* add slider definitions

* Remove whitespace change causing merge conflict

* add slider definitions

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-01 11:10:33 +10:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>Peter Feerick
32da77ce02 Fix MPM Protocol Sorting (#580)
* Fixed Protocol Sorting in model_setup.cpp

* update submodule for libopenui

* Fix potential compilation issue

* Fixed Protocol Sorting in model_setup.cpp

* fix merge issue

* Submodule libopenui back to edgetx master branch

* Reset to libopenui 5c70891
As this was the submodule at the time this branch was started.
This should remove it as a change in the PR.

* fixed an off by one error in the initialization of the sorted list.  When you selected the last protocol in the list it crashed.

* Reset to libopenui 5c70891
As this was the submodule at the time this branch was started.

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-09-01 09:47:32 +10:00
eshifriandGitHub a42328a0c3 Merge branch 'EdgeTX:main' into NV14-model-setup-extra-line 2021-08-30 22:06:08 -07:00
Peter FeerickandGitHub e533fd1af7 Merge pull request #643 from EdgeTX/pfeerick/issue178
Don't remove 2POS from avail switches for invert
2021-08-30 23:37:37 +10:00
Peter FeerickandGitHub 4ad5cc0ab5 Merge pull request #651 from jfrickmann/FixMissingColors
Fix missing colors
2021-08-30 20:46:40 +10:00
jfrickmann f8eb2adab0 Show error message in Lua widgets instead of "disabled"
Also a new function drawTextLines(...) in draw_functions that splits a string over multiple lines
2021-08-29 18:22:31 -04:00
jfrickmann 29639d76ab Fixed colors in Radio menus 2021-08-28 17:03:12 -04:00
eshifri 1c9e90245b Add extra line to the bottom of the model setup screen for NV14. Fix for #620 2021-08-28 13:47:18 -07:00
Peter Feerick a4f781ad1f Don't remove 2POS from avail switches for invert
Also prevent 'unused variable' compiler warning that results from change
Resolves #178
2021-08-27 22:19:32 +10:00
jfrickmann 5fd78ce0d7 Updated libopenui 2021-08-26 10:49:45 -04:00
jfrickmann 16d2df6a44 Fixed missing colors in model menus, except from the top bar 2021-08-26 09:23:00 -04:00
Peter FeerickandGitHub 8becbfcb49 Merge pull request #594 from eshifri/eshifri/invert_switch2 2021-08-25 11:31:08 +10:00
Peter Feerick bbe312a8fd Cleanup 2021-08-25 11:21:40 +10:00
Peter FeerickandGitHub 7b5ac35bf5 Merge pull request #634 from zyren/main
Optimize the date format of CN/TW
2021-08-25 11:09:53 +10:00
Peter FeerickandGitHub 6d7a9293a7 Merge pull request #624 from EdgeTX/pfeerick/issue372
More layouts
2021-08-25 08:04:49 +10:00
zyren 077351b23b Optimize the date format of CN/TW 2021-08-25 00:07:31 +08:00
RistoandGitHub 525126e155 Merge pull request #617 from EdgeTX/Horus_I2C_conf
Adds support of LSM6DS33 IMU to TX16S via AUX1 port
2021-08-24 17:05:08 +02:00
Peter Feerick 66a1caa150 Simply 1x2 layout code 2021-08-24 19:10:57 +10:00
Peter Feerick 52f4714e4c Implement 1x3 layout 2021-08-24 15:47:39 +10:00
Peter Feerick a191effcf6 Implement 2x3 layout 2021-08-23 22:48:19 +10:00
Peter Feerick 88b3c14c02 Implement 2+3 layout 2021-08-23 22:38:45 +10:00
Peter Feerick 1cf957386f Implement 1+3 layout 2021-08-23 22:15:13 +10:00
Peter FeerickandGitHub 7514c51768 Merge pull request #615 from EdgeTX/pfeerick/issue315
Implement 4+2 layout
2021-08-23 19:21:46 +10:00
eshifri 9150e74f50 Do not open menu on long press. Do not allow unavailable values. 2021-08-22 11:18:09 -07:00
eshifriandGitHub eb657119aa Merge branch 'EdgeTX:main' into eshifri/invert_switch2 2021-08-22 11:17:47 -07:00
jfrickmannandRaphael Coeffic 9d878b71ce Improved color handling in Lua
LCD flags can now hold either a theme color index or a RGB value. Hence, values from lcd.RGB() and literal colors like e.g. RED, WHITE etc. can be used interchangeably with theme colors and CUSTOM_COLOR.
Also redesigned drawText, drawNumber and drawTimer, so they now use a common function to implement the party tricks with BLINK and INVERS flags.
2021-08-22 19:39:50 +02:00
jfrickmannandRaphael Coeffic d0e4b767d3 Converted literal colors to indices that can be used everywhere.
Also modified lcd.setColor function so it accepts either RGB or index color as new color. That way, literal colors work as before.
2021-08-22 19:39:50 +02:00
jfrickmannandRaphael Coeffic 8fb260d2b2 Fixed Lua function drawPoint and default color
I had deleted the default color, now it is back again. Lua drawPoint color did not work, it does now. Some style updates to the Lua code where several different names were used for variables holding flags.
2021-08-22 19:39:50 +02:00
jfrickmannandRaphael Coeffic 4a11d7558d Copied theme colors over to FlySky 2021-08-22 19:39:50 +02:00
jfrickmannandRaphael Coeffic 95b87db3e0 Did a scripted search and replace to replace 40 existing theme colors with 11 new theme colors. 2021-08-22 19:39:50 +02:00
jfrickmannandRaphael Coeffic 5db5783be5 Commenting out LCD tests to make it pass checks with a changed color palette 2021-08-22 19:33:03 +02:00
jfrickmannandRaphael Coeffic 302fcef465 Added OS theme colors as suggested by JimB40 in #506
Amend: trying if tests will pass when I move the new color indices to then end of the enum.
2021-08-22 19:33:03 +02:00
Peter FeerickandGitHub 0929e001b2 Merge pull request #602 from eshifri/eshifri/SD_Navigation
Highlight file/folder when selected by touch before release allowing change of mind
2021-08-22 19:07:45 +10:00
RistoandGitHub 25ce6efc70 Merge pull request #612 from EdgeTX/DebugTimeFix
Removes the constant "+00000ms:" from the debug output. Thx for testing @pfeerick !
2021-08-22 09:06:27 +02:00
RistoandGitHub af5c3ce170 Merge pull request #611 from EdgeTX/CompWarnings
Removes two compiler warnings (thx @pfeerick for testing!)
2021-08-22 09:01:46 +02:00
Peter FeerickandGitHub 5677c06402 Merge pull request #619 from eshifri/eshifri/timer_fix 2021-08-22 14:24:37 +10:00
eshifri 03d14a7c04 fix timer display for logical switches. 2021-08-21 18:24:07 -07:00
eshifri 4f111cfa78 undo changes 2021-08-21 17:19:45 -07:00
eshifri aa28f1be44 Shift flight modes string display for vertical screen 2021-08-21 15:39:48 -07:00
rotorman b123caba06 Adds support of LSM6DS33 I2C IMU to TX16S via AUX1 port. Using CMake option -DIMU_LSM6DS33=YES the std. serial USART3/AUX1 functionality is changed to I2C2 bus.
The temperature, gyro and linear acceleration values of LSM6DS33 are sampled and displayed at radio analogs dialog screen in SI-units.
2021-08-21 15:08:50 +02:00
Peter Feerick 23580143af Implement 4+2 layout
Resolves #315
2021-08-21 20:47:08 +10:00
rotorman 6f7a0eee55 Removes the constant "+00000ms:" from the debug output. 2021-08-21 11:22:16 +02:00
RistoandGitHub cbfc14de13 Fix uint - int mismatch compiler warning 2021-08-21 10:13:41 +02:00
eshifri 1e36050bcf Shift flight modes string display for vertical screen 2021-08-20 22:56:51 -07:00