Class IS31FL3731
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface,java.lang.AutoCloseable
public abstract class IS31FL3731 implements DeviceInterfaceRepresents an IS31LF3731 charlieplex IC. All pixel operations are direct write to the device, no buffering. The display has (by default) 8 addressable "frames" (memory buffers) that contain the display information.
Some base methods are protected so that the individual users of this chip can adjust inputs based on the device.
Additional information from the docs
-
-
Constructor Summary
Constructors Constructor Description IS31FL3731(I2CDeviceInterface i2CDevice, Iterable<Integer> frames)
-
Method Summary
Modifier and Type Method Description abstract IntegergetWidth()abstract IntegergetHeight()Unitclose()final Unitsleep(Boolean goToSleep)final Unitreset()final UnitautoPlay(Integer delay, Integer loops, Integer frames)Start "autoplay" (rotate through) the number of frames (default all), with a limited number of loops (default 0=infinite) and an approximate delay in milliseconds.final UnitautoPlay(Integer delay, Integer loops)Start "autoplay" (rotate through) the number of frames (default all), with a limited number of loops (default 0=infinite) and an approximate delay in milliseconds.final UnitautoPlay(Integer delay)Start "autoplay" (rotate through) the number of frames (default all), with a limited number of loops (default 0=infinite) and an approximate delay in milliseconds.final UnitautoPlay()Start "autoplay" (rotate through) the number of frames (default all), with a limited number of loops (default 0=infinite) and an approximate delay in milliseconds.final UnitshowFrame(Integer f)Specifically show a frame - does not set the current default frame. final UnitsetFrame(Integer f, Boolean show)Set the current default frame, optionally showing it. final UnitsetFrame(Integer f)Set the current default frame, optionally showing it. final IntegergetFrame()final IntegergetBlink()final UnitsetBlink(Integer rate)Set and enable blink. final UnitsetBlink()Set and enable blink. final Unitfill(Integer brightness, Boolean blink, Integer frame)Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame. final Unitfill(Integer brightness, Boolean blink)Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame. final Unitfill(Integer brightness)Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame. IntegerpixelAddress(Integer x, Integer y)-
-
Method Detail
-
autoPlay
@JvmOverloads() final Unit autoPlay(Integer delay, Integer loops)
-
autoPlay
@JvmOverloads() final Unit autoPlay(Integer delay)
-
autoPlay
@JvmOverloads() final Unit autoPlay()
-
showFrame
final Unit showFrame(Integer f)
Specifically show a frame - does not set the current default frame.
-
setFrame
@JvmOverloads() final Unit setFrame(Integer f, Boolean show)
Set the current default frame, optionally showing it.
-
setFrame
@JvmOverloads() final Unit setFrame(Integer f)
Set the current default frame, optionally showing it.
-
setBlink
@JvmOverloads() final Unit setBlink(Integer rate)
Set and enable blink. rate in milliseconds is a multiple of
270up to1890, or0to disable.
-
setBlink
@JvmOverloads() final Unit setBlink()
Set and enable blink. rate in milliseconds is a multiple of
270up to1890, or0to disable.
-
fill
@JvmOverloads() final Unit fill(Integer brightness, Boolean blink, Integer frame)
Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame.
-
fill
@JvmOverloads() final Unit fill(Integer brightness, Boolean blink)
Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame.
-
fill
@JvmOverloads() final Unit fill(Integer brightness)
Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame.
-
pixelAddress
Integer pixelAddress(Integer x, Integer y)
-
-
-
-