Added special UART4 init to sample if FlySky sticks are present or not.
Added boolean globalData.flyskygimbals to save the detection result.
Removed FLYSKY_HALL_STICKS and FLYSKY_HALL_STICKS_REVERSE CMake build options.
Tested on two RM TX16S radios, one with FlySky digital hall sticks and second with stock analog sticks.
* Add live data to telemetry edit
* Move live data to top bar
* Add extra room for sensors button
Right side of telemetry ID list is being cut off. Changing to 38 gives room
* Remove incorrect comment
Seems self explanatory. I don't think this needs to be here at all.
* implemented a touch disable/enable statemachine
works as follows:
if touch is enabled, everything is processed
if touch is disabled, nothing is processed
when switching from disabled to enabled, and the display touched before, the TE_UP/TE_SLIDE_END ist ignored
when switching from enabled to disabled and the display is touched, the next TE_UP/TW_SLIDE_END will be processed, to leave nobody in a touch started but never ended state
* fix touch screen handling when staring touch while disabled and releasing touch when enabled
* touch on/off with backlight on/off is working
* setTouchEnable has to be #if defed for touch radios
* Relax assumptions about when Lua is called in foreground and background
* Start Lua cycle timer both in foreground and background
Do not assume that background/foreground alternates
* Lua is called at every Standalone GUI cycle instead of 5 Hz
Since Lua preempts every 50 ms or so, the GUI should remain responsive.
* In standalone script, only call Lua once per GUI cycle, to avoid messing up buffer handling.
* Revamped error reporting for Standalone and Telemetry Lua scripts
* Font size for Lua error is reduced from XL to L on color if LCD_W < LCD_H
* In drawTextLines, also possible linebreaks for opening brackets.
* Smaller font for error message on tall color screen
* Make titlebar height match font size on narrow LCD
* Add theme editor
- added theme editing support to radio
- color editing controls
- split screen into browser and editor
- removed dead code from coloreditor,
- new radio theme editing icon
* Resolve compile error & merge cleanup
* 1. fix exit key press in ThemeEditor. It was not exiting screen
2. added ability to touch PageButton() on ColorEditPage()
Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
* Issue #132
Added 16 shared memory variables which can be accessed bot from Lua widgets and other Lua scripts.
* Notice Only available on radios with color display
* no more backlight off mode for color lcd radios
disable backlight input controls in radio setup screen, when they are not used by the selected backlight mode
force backlight on to be at least the brightness of backlight off
* do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON.
* Revert "do not allow to set the display brightness below the configured off brightness, except when display mode is set to ON."
This reverts commit e153a8dc658d53f5420c912e7543d6d0a9fe6ed9.