534
edits
m (Minor Navigation update) |
m (Adding Methods List) |
||
| Line 66: | Line 66: | ||
== HT16K33 Methods == | == HT16K33 Methods == | ||
=== | === configMCP(state) === | ||
This method configure the device. | |||
* state : Set the state of the device. 0 or 1.(Integer). When set to 1 , the device is active | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> LEDPACK2.config(1) # activate the device | |||
>>> | |||
>>> LEDPACK2.config(0) # desactivate the device | |||
>>> | |||
</syntaxhighlight> | |||
=== Start() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== Stop() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== getStatus() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== getStatus() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== GetComRegister(com) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== GetComPortRegister(port, com) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== getName() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== getType() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== getAddress() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== setBrightness(brightness) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== setBlinkRate(blinkrate) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== clearAllBuffer() === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== clearBuffer(register) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== setRow(port, row, data) === | |||
<syntaxhighlight lang="python"> | |||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | |||
[GCC 4.9.1] on linux | |||
Type "help", "copyright", "credits" or "license" for more information. | |||
>>> from FGInterface import FGInterface as FGINT | |||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | |||
=== setOut(port, row, out, value) === | |||
<syntaxhighlight lang="python"> | <syntaxhighlight lang="python"> | ||
Python 3.4.2 (default, Oct 19 2014, 13:31:11) | Python 3.4.2 (default, Oct 19 2014, 13:31:11) | ||
| Line 73: | Line 257: | ||
Type "help", "copyright", "credits" or "license" for more information. | Type "help", "copyright", "credits" or "license" for more information. | ||
>>> from FGInterface import FGInterface as FGINT | >>> from FGInterface import FGInterface as FGINT | ||
>>> FGINT1 = FGINT('radiopanel.cfg', 0) | |||
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33') | |||
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0) | |||
>>> | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{WIP}} | {{WIP}} | ||
edits