Switch Class
Jump to navigation
Jump to search
FG Int Objects Modules |
---|
Modules Classes |
Switches Class |
Navigation |
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
This file describes the 2 positions switches configuration used on the radio panel.
There are two separate parts in this file.
- a general configuration part, in the CONF and PROPERTIES sections.
- the other sections each describe a display.
[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