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 }