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

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

BitName
0Main screen 1
1Horseshoe speed
2Horseshoe current
3Speed with horizontal current bar
4Stopwatch
5Consumption
Bit positionDec valueDescription
01Main screen
12Horseshoe speed
24Horseshoe current
38Speed and horizontall current bar
416Stopwatch
532Consumption graph

sub_scr_opts

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

BitNameDescription
0TRIPLong press of BTN3 will reset the TRIP
1ODO

scr_elements_opts

Bitwise parameter

You can enable or disable some elements on main screens

BitNameDescription
0TimeShow time on some screens. Use this option if the display is with RTC battery.
1MapShow map number on screen
2Motor tempShow motor temp on some screens.
3Controller tempShow controller temperature on some screens
info
  • RTC battery is not present in standard display version
  • Showing temperatures require LYNX v5.1.x and newer
  • To properly convert motor temperature from resistance to degree, check parameters in /mtemp folder.

options

BitNameDescription
0GPIO1 & 2 Turn signalsIf voltage on GPIO1 it GPIO2 is higher thna 10V, turn signal LED is on
1BTN 2 Map switchThis will enable switching maps by BTN 2
2GPIO1 and GPIO2 map switchUsing GPIO1 and GPIO you can change maps up and down. This disable map switch from BTN4(GPIO0)
note

GPIO1 & 2 Turn signals

There are 2 posibilities how to controll turn signal LED. First is one hardware input dedigated for the LED. Second is let the MCU to controll the LED and use GPIO as input. The second option allows you to use 2 separate signals (left and right).

Please take attention to the display hardware configuration. If the turn signal LED is controlled by MCU or by 12V signal, is done by hardware configuration.

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

Motor temperature conversion

On some screen is option to show motor temperature. The controller is sending motor temperature in resistance and the display will convert it to the temperature in degrees.

/mtemp/R_25

Sensor resistance at 25°C in [ohm]

/mtemp/Bconst

Sensor constant.

  • Use positive value if your sensor is PTC
  • Use negative value if your sensor is NTC

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.

no_regen_treshold

ValueDescription
> 0Show warning icon at full battery
-1The icon lits green in braking mode
-2The icon is disabled, SOC text is always large
info

The icon will make SOC text smaller