Documentation ¶
Index ¶
- func NewEInk(config config.DisplayConfig) dev.Display
- type EInk
- func (d *EInk) Bounds() image.Rectangle
- func (d *EInk) Clear() error
- func (d *EInk) ClearAndRefresh() error
- func (d *EInk) ColorModel() color.Model
- func (d *EInk) Draw(src image.Image) error
- func (d *EInk) DrawAndRefresh(src image.Image) error
- func (d *EInk) DrawRaw(r image.Rectangle, src image.Image, sp image.Point) error
- func (d *EInk) Init() error
- func (d *EInk) Refresh() error
- func (d *EInk) Reset() (err error)
- func (d *EInk) ResetFrameMemory(color byte) error
- func (d *EInk) SendCommand(cmd byte) (err error)
- func (d *EInk) SendCommandArgs(cmd byte, data ...byte) error
- func (d *EInk) SendData(data ...byte) (err error)
- func (d *EInk) Sleep() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EInk ¶
EInk is an implementation of dev.Display driver for E-Ink 2.13" display.
func (*EInk) ClearAndRefresh ¶
ClearAndRefresh clears the EInk display and triggers update of the frame.
func (*EInk) ColorModel ¶
ColorModel implements display.Drawer. It is a one bit color model, as implemented by image1bit.Bit.
func (*EInk) Draw ¶
Draw sends `src` image binary representation to EInk display buffer. Use Refresh() or DrawAndRefresh() to display image.
func (*EInk) DrawAndRefresh ¶
DrawAndRefresh sends `src` image binary representation to EInk display buffer and triggers update of the frame.
func (*EInk) ResetFrameMemory ¶
ResetFrameMemory clear the frame memory with the specified color. this won't update the display.
func (*EInk) SendCommand ¶
SendCommand overrides periphery.SPI send command method by additionally sending signals to DC and CS GPIO pins.
func (*EInk) SendCommandArgs ¶
SendCommandArgs overrides periphery.SPI send command with args method by additionally sending signals to DC and CS GPIO pins.