Variables
This is documentation of variables for LYNX-front application.
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.
This feature requires HW functionality called "flip-flop" to be enabled in the display and controller. (default in standard configuration)
- 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
/mtempfolder.
options
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.
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.
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