Skip to main content
FW version: Stable

Variables

This is documentation of variables for LYNX-front application.

info

Documentation for variables in folder /common is here: Common block

Parameters

shutdown_longpress

A long press on BTN1 will shut down the display and controller. This is a delay for the long press in [ms].
If set to 0, the shutdown functionality on BTN1 is disabled.

info

This feature requires HW functionality called "flip-flop" to be enabled in the display and controller. (default in standard configuration)

main_scr_opts

Bitwise parameter

Using this parameter, you can choose which main screens are available to the user.

Bit positionDec valueDescription
01Main screen
12Horseshoe speed
24Horseshoe current
38Speed and horizontall current bar
416Stopwatch
532Consumption graph
example

main_scr_opts = 17 (1 + 16) means that the user can switch only between the main screen and the stopwatch screen.

sub_scr_opts

Bitwise parameter

Using this parameter, you can choose which sub-screens are available. Sub screen is the one-line text at the bottom of the screen.

Bit positionDec valueDescription
01TRIP (BTN3 long press do reset)
12ODO

scr_elements_opts

Bitwise parameter

You can enable or disable some elements on main screens

Bit positionDec valueDescription
01Time and date (Disable this when you display is without RTC battery)
12Map number
info

RTC battery is not present in standard display version

in_btn4

The display expects 4 buttons for control. One of them is external. The value of this parameter is the ID of the input for the external button.

The value must be the ID of the GDIN input on the display.

IDName
16GPIO0 - default value
17GPIO1
18GPIO2
tip

BTN4 is used as a map change button, or stopwatch start/stop button.

simulate

If you set this value to something other than 0, the display will simulate the controller connection. This is useful for testing the display without the controller.

ValueDescription
0No simulation
-1Simulate connection
-10Freeze the simulation
Positive valueSimulate LYNX controller with given mode

Permanents

These permanents are for storage user settings.

tip

If you want to change these values, use the display menu.

mph

mph/kph slelection

1 = mph 0 = kph

main_scr_id

The ID of the current main-screen. After the display reboot, it is restored

sub_scr_id

The ID of the current sub-screen. After the display reboot, it is restored

pin

User pin.

user_color

A user selected color.