Interface SegmentedDisplay

  • All Implemented Interfaces:

    
    public interface SegmentedDisplay
    
                        

    Handles displaying characters on segmented displays. The base conceit is a 14-segment display, with limits applied to work with 7-segments.

    This is based on the Adafruit Segments library code.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit print(String value) Prints a string to the display(s).
      abstract Unit print(Float value, Integer decimalPlaces) Prints a numeric value to the display(s).
      Unit scroll(Integer count) Scroll the existing text by count characters.
      abstract Unit setDigit(Integer digit, Integer hiValue, Integer lowValue) Directly set segment values for the digit in the display.
      Unit marquee(String text, Duration delay, Boolean loop) Print a scrolling value to the displays.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • print

         abstract Unit print(String value)

        Prints a string to the display(s). This is appended to any existing text.

      • print

         abstract Unit print(Float value, Integer decimalPlaces)

        Prints a numeric value to the display(s). This is appended to any existing text.

      • setDigit

         abstract Unit setDigit(Integer digit, Integer hiValue, Integer lowValue)

        Directly set segment values for the digit in the display. The digit is zero-based, so 0 is the left-most digit. The hiValue is the upper 7 bits of the segment value, and lowValue is the lower 7 bits. The lowValue is not used for 7-segment displays.

      • marquee

         Unit marquee(String text, Duration delay, Boolean loop)

        Print a scrolling value to the displays. Each character is appened to existing text at the delay interval. If loop is true, the text will be repeated indefinitely.