FG Int Objects Modules: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
m (Menu Update)
mNo edit summary
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Sidebar
{{:FG Int Objects Modules sidebar}}
| name = GUI Navbar
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 />
| title = [[FG interface|FG Interface]]
All Modules Classes are loaded into the interface, ready to be used and can be requested with the '''getModule()''' Interface Method.
| contentstyle = text-align: left;
 
| content1 = '''Raspberry PI Setup'''
To be loaded, the module need to be declared.
* [[Raspberry OS setup]]
For memory, the main config file :
* [[Raspberry Python3 Installation]]
<syntaxhighlight lang="ini">
* [[Raspberry I2C Setup]]
[INT]
* FGInt installation
intname=RADIOPANEL
| content2 = '''FG Int'''
deviceconf=/opt/fgint/Config/RadioPanel/devices.cfg
* [[FG Interface:How it work]]
 
* [[FGInterface Class]]
[MODULES]
* [[I2C Devices Classes]]
module01=FGIntHT16K33,HT16K33
* [[FG Int Objects Modules]]
module02=FGIntMCP23017,MCP23017
* The FGIntServer
module03=FGIntSegDisplay,SegDisplay
| content3 = '''Hadware'''
module04=FGIntSwDisplay,SwitchLight
* MCP23017 (Generic I/O Driver)
module05=FGIntSwitch,Switch
* HT16K33 (Led & Display Driver)
module06=FGIntSwitch,ToogleSwitch
* Schemas & PCB
module07=RotaryEncoder,RotaryEncoder
[[File:FGInt front view.png|thumb|FG Interface. Final prototype alpha]]
 
}}
[AUXCONF]
== FG Interface Module ==
displays=/opt/fgint/Config/RadioPanel/displays.cfg
{{WIP}}
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>
 
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''', '''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.
'''FGIntSwitch.py''' own the folling classes :
* '''Switch''' : Single switch 2 states
* '''DoubleSwitch''' : Single switch 3 states
* '''RotarySwitch''' : Use to manage a rotary switch (variable nb position)
* '''ToogleSwitch''' : Single Push button that will switch between 2 states at each push
534

edits

Navigation menu