Skip to main content
Firmware Stable

Variables

Documentation for all variables in /common folder for siliXcon displays.

Static variables​

Static variable can be only read, NOT set.

gpioX​

In this variable, you can read voltage on gpio. X stands for a number of gpio. The number of gpio is different for every display. Check display HW documentation.

The reading value is [mV]. This reading is not filtered.

gpio​

This is the same as gpioX, but this is an array of all gpios.

gdin​

This is a digital representation of voltage at gpio. This variable is an array.

gdin valuegpio voltagePin is connected to:
-1(only when ioconf = 1) voltage is <0.5VGND
0voltage is between 0.6V - 2.5VPin is floating
1voltage is between 2.6V - 4.1V3.3V
2voltage is between 4.2V - 7V5V
3voltage is >7.2V10V

voltage [V]​

Filtered voltage, in [V], on the "KEY" pin.

rtcvoltage [V]​

Voltage on internal RTC battery.

info

This battery is optional. If the battery is not present, it still shows some voltage of around 3V

buttons​

This is a bitwise variable.

bitsDescription
0-3Button 1-4 is pressed (Debounce is included)
4-7Button 1-4 is pressed for "long press time"
otherreserved for enternal usage

btn​

Is array. Each column is one button.

ValueDescription
0Button released
1Short press of button
2Longpress of button

Example of states​

List of available states:
-> gpio0 int16 : 83 [mV]
-> gpio1 int16 : 14 [mV]
-> gpio2 int16 : 19 [mV]
-> gpio int16 column : 83,14,20
-> gdin int8 column : -1,0,0 |0: \<2.5V| |1: 2.6-4.1V| |2: 4.2-7V| |3: >7.1V| pull-up:|-1: \<0.5V|
-> voltage float : 44.8447 [V]
-> rtcvoltage float : 2.83626 [V]
-> buttons uint32 : 0 | 0-3 bit = 1-4 BTN pressed, next 4 bites is long press
-> btn uint8 column : 0,0,0,0 |0 = btn released| |1 = shortpress| |2 = longpress|

Parameters​

appsel​

You can select an application.

valueDescription
0, 1Main application
10Application is off
123Production application (testing screen)

ioconfX​

You can set gpioX input to:

valuenameDescription
0floatingno MCU resistor connected. (There is still weak pull-down present)
1pull-upenable internal 40k MCU pull-up to 3.3V
2pull-dnenable intarnal 40k MCU pull-dn to GND. This setting will increase input voltage range.

bright​

You can change the display backlight.

The range is 0-100 [%]