Package crackers.kobots.devices.display
Class QwiicAlphanumericDisplay
-
- All Implemented Interfaces:
-
com.diozero.api.DeviceInterface
,crackers.kobots.devices.display.SegmentedDisplay
,java.lang.AutoCloseable
public final class QwiicAlphanumericDisplay extends HT16K33 implements SegmentedDisplay
TODO temporary since I only have one display
-
-
Constructor Summary
Constructors Constructor Description QwiicAlphanumericDisplay()
QwiicAlphanumericDisplay(List<I2CDeviceInterface> devices)
-
Method Summary
Modifier and Type Method Description final Boolean
getDecimal()
final Unit
setDecimal(Boolean decimal)
final Boolean
getColon()
final Unit
setColon(Boolean colon)
Unit
print(String value)
TODO currently only outputs directly to the display, no scrolling or anything Unit
print(Float value, Integer decimalPlaces)
Prints a numeric value to the display(s). final Unit
clock(Temporal time, Boolean colonOn, Boolean useAmPm)
Print a time to the display in hours:minutes. Unit
setDigit(Integer digit, Integer hiValue, Integer lowValue)
Directly set segment values for the digit in the display. -
Methods inherited from class crackers.kobots.devices.display.HT16K33
close, fill, getAutoShow, getBlinkRate, getBrightness, getDevices, getOn, getRetries, pixel, setAutoShow, setBlinkRate, setBrightness, setOn, show
-
Methods inherited from class crackers.kobots.devices.display.SegmentedDisplay
marquee, scroll
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
QwiicAlphanumericDisplay
QwiicAlphanumericDisplay()
-
QwiicAlphanumericDisplay
QwiicAlphanumericDisplay(List<I2CDeviceInterface> devices)
-
-
Method Detail
-
getDecimal
final Boolean getDecimal()
-
setDecimal
final Unit setDecimal(Boolean decimal)
-
print
Unit print(String value)
TODO currently only outputs directly to the display, no scrolling or anything
-
print
Unit print(Float value, Integer decimalPlaces)
Prints a numeric value to the display(s). This is appended to any existing text.
-
-
-
-