Matrices¶
-
class
is31fl3731.Matrix(i2c, address=0x74)¶ Charlieplexed 16x9 LED matrix.
-
reset()¶ Reset the matrix.
-
sleep([value])¶ Get or set the sleep mode.
-
autoplay(delay=0, loops=0, frames=0)¶ Enables or disables autoplay.
If
delayis 0, autoplay is disabled. Otherwise the display will switch betweenframesframes everydelaymilliseconds, and repeat the cycleloopstimes. Ifloopsis 0, it will repeat indefinitely.
-
fade(self, fade_in=None, fade_out=None, pause=0)¶ Disables or enables and configures fading.
If called without parameters, disables fading. If
fade_inand/orfade_outare specified, it will take that many milliseconds to change between frames, withpausemilliseconds of dark between.
-
frame(self, frame=None, show=True)¶ Change or get active frame.
If
frameis not specified, returns the active frame, otherwise sets it to the value offrame. IfshowisTrue, also shows that frame.
-
audio_sync(self, value=None)¶ Enable, disable or get sync of brightness with audio input.
-
audio_play(self, sample_rate, audio_gain=0, -
agc_enable=False, agc_fast=False) Enable or disable frame display according to the audio input.
The
sample_ratespecifies sample rate in microseconds. If it is 0, disable the audio play. Theaudio_gainspecifies amplification between 0dB and 21dB.
-
blink(self, rate=None)¶ Get or set blink rate up to 1890ms in steps of 270ms.
-
fill(self, color=None, blink=None, frame=None)¶ Fill the display with specified color and/or blink.
-
pixel(self, x, y, color=None, blink=None, frame=None)¶ Read or write the specified pixel.
If
coloris not specified, returns the current value of the pixel, otherwise sets it to the value ofcolor. Ifframeis not specified, affects the currently active frame. Ifblinkis specified, it enables or disables blinking for that pixel.
-
-
class
is31fl3731.CharlieWing(i2c, address=0x74)¶ Driver for the 15x7 CharlieWing Adafruit FeatherWing.
Has the same methods as the :class:Matrix above.