Module ucgd.common

Interface DisplayDriver

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clears the display screen
      int getHeight()
      Returns the height of the display.
      long getId()
      Returns a unique identifier for this driver instance
      int getWidth()
      Returns the width of the display.
      void setCursor​(int x, int y)
      Sets the current position on the display
      void write​(byte... data)
      Writes data to the display
    • Method Detail

      • getHeight

        int getHeight()

        Returns the height of the display.

        Returns:
        The height of the display.
        See Also:
        getWidth()
      • getWidth

        int getWidth()

        Returns the width of the display.

        Returns:
        The width of the display.
        See Also:
        getWidth()
      • clear

        void clear()

        Clears the display screen

      • setCursor

        void setCursor​(int x,
                       int y)

        Sets the current position on the display

        Parameters:
        x - The X-coordinate
        y - The Y-coordinate
      • write

        void write​(byte... data)

        Writes data to the display

        Parameters:
        data - The byte(s) to send to the display
      • getId

        long getId()
        Returns a unique identifier for this driver instance
        Returns:
        An unsigned long reperesenting the driver id