Class IS31FL3731
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface
,java.lang.AutoCloseable
public abstract class IS31FL3731 implements DeviceInterface
Represents 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 Integer
getWidth()
abstract Integer
getHeight()
Unit
close()
final Unit
sleep(Boolean goToSleep)
final Unit
reset()
final Unit
autoPlay(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 Unit
autoPlay(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 Unit
autoPlay(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 Unit
autoPlay()
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 Unit
showFrame(Integer f)
Specifically show a frame - does not set the current default frame. final Unit
setFrame(Integer f, Boolean show)
Set the current default frame, optionally showing it. final Unit
setFrame(Integer f)
Set the current default frame, optionally showing it. final Integer
getFrame()
final Integer
getBlink()
final Unit
setBlink(Integer rate)
Set and enable blink. final Unit
setBlink()
Set and enable blink. 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. 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. final Unit
fill(Integer brightness)
Fills the entire display with a white color at the indicated brightness percentage (1 to 100) and selected frame. Integer
pixelAddress(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
270
up to1890
, or0
to disable.
-
setBlink
@JvmOverloads() final Unit setBlink()
Set and enable blink. rate in milliseconds is a multiple of
270
up to1890
, or0
to 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)
-
-
-
-