HT16K33 Class: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 219: Line 219:


=== setBrightness(brightness) ===
=== setBrightness(brightness) ===
Except for development or debugging and knowing what you are doing, there is no reason to invoke this method directly. It is a system method internal to the operation of the driver.
Set the brightness level on output. Affect the all module in one time.
* brightness : 1..16
<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 228: Line 229:
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33')
>>> MODULE_HT16K33 = FGINT1.getModule('HT16K33')
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0)
>>> LEDPACK2 = MODULE_HT16K33('LEDPACK2', '0x71', 0)
>>> LEDPACK2.setBrightness(2) # very low intensity
>>>
>>> LEDPACK2.setBrightness(15) # very hight level intensity
>>>
>>>
</syntaxhighlight>
</syntaxhighlight>
534

edits

Navigation menu