534
edits
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
[INT] | [INT] | ||
intname=RADIOPANEL | intname=RADIOPANEL | ||
deviceconf=/opt/fgint/Config/devices.cfg | deviceconf=/opt/fgint/Config/RadioPanel/devices.cfg | ||
[MODULES] | [MODULES] | ||
Line 14: | Line 14: | ||
module02=FGIntMCP23017,MCP23017 | module02=FGIntMCP23017,MCP23017 | ||
module03=FGIntSegDisplay,SegDisplay | module03=FGIntSegDisplay,SegDisplay | ||
module04=FGIntSwitch,Switch | module04=FGIntSwDisplay,SwitchLight | ||
module05=FGIntSwitch,Switch | |||
module06=FGIntSwitch,ToogleSwitch | |||
module07=RotaryEncoder,RotaryEncoder | |||
[AUXCONF] | [AUXCONF] | ||
displays=/opt/fgint/Config/displays.cfg | displays=/opt/fgint/Config/RadioPanel/displays.cfg | ||
switches=/opt/fgint/Config/switches.cfg | swlights=/opt/fgint/Config/RadioPanel/swlights.cfg | ||
switches=/opt/fgint/Config/RadioPanel/switches.cfg | |||
tglswitches=/opt/fgint/Config/RadioPanel/tglswitches.cfg | |||
encoders=/opt/fgint/Config/RadioPanel/rotenc.cfg | |||
</syntaxhighlight> | </syntaxhighlight> | ||
In the '''MODULES''' section, you can see all modules that will be loaded. | In the '''MODULES''' section, you can see all modules that will be loaded. | ||
Here We are loading '''HT16K33''' from module file '''FGIntHT16K33.py'''. Same thing for the '''MCP23017''' Module in the '''FGIntMCP23017.py''' | Here We are loading '''HT16K33''' from module file '''FGIntHT16K33.py'''. Same thing for the '''MCP23017''' Module in the '''FGIntMCP23017.py''', '''FGIntSegDisplay.py''' with the '''SegDisplay''' Class | ||
Some Module file can handle more than one Class, as like '''FGIntSwitch.py''' where you can find different Class for different switch types. | Some Module file can handle more than one Class, as like '''FGIntSwitch.py''' where you can find different Class for different switch types. | ||
Line 30: | Line 36: | ||
* '''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 | ||
edits