Changes

Jump to: navigation, search

FG Int Objects Modules

57 bytes added, 09:23, 2 December 2019
m
no edit summary
{{Sidebar| name = GUI Navbar| title = :FG Int Objects Modules| contentstyle = text-align: left;| content1 = '''Modules Classes'''* [[FG Segment Display]]* [[FG SwitchLight]]* [[FG Switches]]* [[FG Rotary Encoder]]| content9 = '''Navigation'''* [[FG interface]]sidebar}}
Modules in FG interface are Object Class , as like a map, to build a new object. You have learned about '''HT16K33''' and '''MCP23017''' classes, they are Modules, special Modules named in FG Interface world '''Devices'''. I made this difference to split and make the difference between switch , displays .. etc and the hardware driver chip.<br />
All Modules Classes are loaded into the interface, ready to be used and can be requested with the '''getModule()''' Interface Method.
[INT]
intname=RADIOPANEL
deviceconf=/opt/fgint/Config/RadioPanel/devices.cfg
[MODULES]
module02=FGIntMCP23017,MCP23017
module03=FGIntSegDisplay,SegDisplay
module04=FGIntSwDisplay,SwitchLightmodule05=FGIntSwitch,Switchmodule06=FGIntSwitch,ToogleSwitchmodule07=RotaryEncoder,RotaryEncoder
[AUXCONF]
displays=/opt/fgint/Config/RadioPanel/displays.cfgswlights=/opt/fgint/Config/RadioPanel/swlights.cfgswitches=/opt/fgint/Config/RadioPanel/switches.cfgtglswitches=/opt/fgint/Config/RadioPanel/tglswitches.cfgencoders=/opt/fgint/Config/RadioPanel/rotenc.cfg
</syntaxhighlight>
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''' and , '''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.
494
edits

Navigation menu