FG Int Objects Modules: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 41: Line 41:
* '''RotarySwitch''' : Use to manage a rotary switch (variable nb position)
* '''RotarySwitch''' : Use to manage a rotary switch (variable nb position)
* '''ToogleSwitch''' : Single Push button that will switch between 2 states at each push
* '''ToogleSwitch''' : Single Push button that will switch between 2 states at each push
As the radio panel had lots of push button, we need to load the ToogleSwitch Class.<br />
We add it to the configuration file.
<syntaxhighlight lang="ini">
[INT]
intname=RADIOPANEL
deviceconf=/opt/fgint/Config/devices.cfg
[MODULES]
module01=FGIntHT16K33,HT16K33
module02=FGIntMCP23017,MCP23017
module03=FGIntSegDisplay,SegDisplay
module04=FGIntSwitch,Switch
module04=FGIntSwitch,ToogleSwitch
[AUXCONF]
displays=/opt/fgint/Config/displays.cfg
switches=/opt/fgint/Config/switches.cfg
</syntaxhighlight>
534

edits