Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device represents the frame buffer. It implements the draw.Image interface.
func Open ¶
Open expects a framebuffer device as its argument (such as "/dev/fb0"). The device will be memory-mapped to a local buffer. Writing to the device changes the screen output. The returned Device implements the draw.Image interface. This means that you can use it to copy to and from other images. The only supported color model for the specified frame buffer is RGB565. After you are done using the Device, call Close on it to unmap the memory and close the framebuffer file.
func (*Device) Close ¶
func (d *Device) Close()
Close unmaps the framebuffer memory and closes the device file. Call this function when you are done using the frame buffer.
func (*Device) ColorModel ¶
ColorModel implements the image.Image (and draw.Image) interface.