Package crackers.kobots.devices.display
Class HT16K33
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface
,java.lang.AutoCloseable
public abstract class HT16K33 implements DeviceInterface
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
HT16K33.BlinkRate
public class
HT16K33.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static Integer
DEFAULT_I2C_ADDRESS
private Boolean
autoShow
private Float
brightness
private Boolean
on
private HT16K33.BlinkRate
blinkRate
private final List<I2CDeviceInterface>
devices
private final Integer
retries
public final static HT16K33.Companion
Companion
-
Method Summary
Modifier and Type Method Description final Boolean
getAutoShow()
Whether to immediately show the buffer on the display(s) after a change or not. final Unit
setAutoShow(Boolean autoShow)
Whether to immediately show the buffer on the display(s) after a change or not. final Float
getBrightness()
final Unit
setBrightness(Float brightness)
final Boolean
getOn()
final Unit
setOn(Boolean on)
final HT16K33.BlinkRate
getBlinkRate()
final Unit
setBlinkRate(HT16K33.BlinkRate blinkRate)
final List<I2CDeviceInterface>
getDevices()
final Integer
getRetries()
Unit
close()
final Unit
show()
Show the buffer on the display(s). final Unit
fill(Boolean onOff)
Fill the display(s) with either on or off pixels. final Unit
pixel(Integer x, Integer y, Boolean color)
Set a pixel on or off based on the x,y coordinates, based on 7-segment display coordinates. -
-
Method Detail
-
getAutoShow
final Boolean getAutoShow()
Whether to immediately show the buffer on the display(s) after a change or not.
-
setAutoShow
final Unit setAutoShow(Boolean autoShow)
Whether to immediately show the buffer on the display(s) after a change or not.
-
getBrightness
final Float getBrightness()
-
setBrightness
final Unit setBrightness(Float brightness)
-
getBlinkRate
final HT16K33.BlinkRate getBlinkRate()
-
setBlinkRate
final Unit setBlinkRate(HT16K33.BlinkRate blinkRate)
-
getDevices
final List<I2CDeviceInterface> getDevices()
-
getRetries
final Integer getRetries()
-
-
-
-