-
- All Known Subinterfaces:
GlcdDisplayDriver
,GlcdDriverAdapter
- All Known Implementing Classes:
GlcdBaseDriver
,GlcdDriver
,U8g2DriverAdapter
public interface DisplayDriver
Base interface for all Display Devices- Author:
- Rafael Ibasco
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clears the display screenint
getHeight()
Returns the height of the display.long
getId()
Returns a unique identifier for this driver instanceint
getWidth()
Returns the width of the display.void
setCursor(int x, int y)
Sets the current position on the displayvoid
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-coordinatey
- 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
-
-