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 enumHT16K33.BlinkRatepublic classHT16K33.Companion
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_I2C_ADDRESSprivate BooleanautoShowprivate Floatbrightnessprivate Booleanonprivate HT16K33.BlinkRateblinkRateprivate final List<I2CDeviceInterface>devicesprivate final Integerretriespublic final static HT16K33.CompanionCompanion
-
Method Summary
Modifier and Type Method Description final BooleangetAutoShow()Whether to immediately show the buffer on the display(s) after a change or not. final UnitsetAutoShow(Boolean autoShow)Whether to immediately show the buffer on the display(s) after a change or not. final FloatgetBrightness()final UnitsetBrightness(Float brightness)final BooleangetOn()final UnitsetOn(Boolean on)final HT16K33.BlinkRategetBlinkRate()final UnitsetBlinkRate(HT16K33.BlinkRate blinkRate)final List<I2CDeviceInterface>getDevices()final IntegergetRetries()Unitclose()final Unitshow()Show the buffer on the display(s). final Unitfill(Boolean onOff)Fill the display(s) with either on or off pixels. final Unitpixel(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()
-
-
-
-