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 value | gpio voltage | Pin is connected to: |
|---|---|---|
| -1 | (only when ioconf = 1) voltage is <0.5V | GND |
| 0 | voltage is between 0.6V - 2.5V | Pin is floating |
| 1 | voltage is between 2.6V - 4.1V | 3.3V |
| 2 | voltage is between 4.2V - 7V | 5V |
| 3 | voltage is >7.2V | 10V |
voltage [V]
Filtered voltage, in [V], on the "KEY" pin.
rtcvoltage [V]
Voltage on internal RTC battery.
This battery is optional. If the battery is not present, it still shows some voltage of around 3V
buttons
This is a bitwise variable.
| bits | Description |
|---|---|
| 0-3 | Button 1-4 is pressed (Debounce is included) |
| 4-7 | Button 1-4 is pressed for "long press time" |
| other | reserved for enternal usage |
btn
Is array. Each column is one button.
| Value | Description |
|---|---|
| 0 | Button released |
| 1 | Short press of button |
| 2 | Longpress 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.
| value | Description |
|---|---|
| 0, 1 | Main application |
| 10 | Application is off |
| 123 | Production application (testing screen) |
ioconfX
You can set gpioX input to:
| value | name | Description |
|---|---|---|
| 0 | floating | no MCU resistor connected. (There is still weak pull-down present) |
| 1 | pull-up | enable internal 40k MCU pull-up to 3.3V |
| 2 | pull-dn | enable 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 [%]