Files
beatglow/hardware/display.go
T
2026-10-29 17:29:41 +01:00

33 lines
482 B
Go

package hardware
import (
"image"
"image/color"
"image/draw"
)
// Display driver.
type Display interface {
Driver
// PowerSave puts the display to sleep.
PowerSave(on bool) error
// Draw an image on the display.
Draw(r image.Rectangle, src image.Image, sp image.Point) error
// Size of the display.
Size() image.Point
// Clear the display buffer.
Clear()
// Fill with one color.
Fill(color.Color) error
// Refresh the display.
Refresh() error
draw.Image
}