Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Changes

Jump to: navigation, search

Switch Class

1,327 bytes added, 08:57, 2 December 2019
Initial Création
{{Sidebar
| name = GUI Navbar
| title = FG Int Objects Modules
| contentstyle = text-align: left;
| content1 = '''Modules Classes'''
* [[FGInt Segment Display]]
* [[FGInt SwitchLight]]
* [[FGInt Switches]]
* [[FGInt Rotary Encoder]]
| content2 = '''Switches Class'''
* [[Switch Class]]
* [[DoubleSwitch Class]]
* [[RotarySwitch Class]]
* [[ToogleSwitch Class]]
| content9 = '''Navigation'''
* [[FG interface]]
}}
Segments switch Class '''''Switch''''' will be used to manage standard 2 position switches (only 1 input needed per switch) and is based on the MCP23017.

== Switches Configuration File ==
Displays configuration file : ''/opt/fgint/Config/RadioPanel/switches.cfg''<br />
This file describes the 2 positions switches configuration used on the radio panel.<br />
There are two separate parts in this file.<br />

# a general configuration part, in the CONF and PROPERTIES sections.
# the other sections each describe a display.

<syntaxhighlight lang="ini">
[CONF]
confname=SWITCHES
library=FGIntSwitch
module=Switch
properylist=device,name,port,pin,values,valuestype,invert,node

[PROPERTIES]
prop01=device
prop02=name
prop03=port
prop04=pin
prop05=values
prop06=valuestype
prop07=invert
prop08=node

[RMP0PSW]
name=rmp0psw
device=IOPACK1
port=A
pin=2
values=0,1
valuestype=int
node=None
invert=0
</syntaxhighlight>
494
edits

Navigation menu