Documentation ¶
Index ¶
- Constants
- type Command
- type EPD
- func (e *EPD) ClearFrameMemory(color byte)
- func (e *EPD) DisplayFrame()
- func (e *EPD) Reinitialize()
- func (e *EPD) Reset()
- func (e *EPD) SendCommand(cmd Command, args ...byte)
- func (e *EPD) SendData(data ...byte)
- func (e *EPD) SetFrameMemory(im image.Image, x, y uint8)
- func (e *EPD) SetLUT(lut []byte)
- func (e *EPD) SetMemoryArea(startX, startY, endX, endY uint8)
- func (e *EPD) SetMemoryPointer(x, y uint8)
- func (e *EPD) WaitUntilIdle(ctx context.Context) error
Constants ¶
View Source
const ( Width uint8 = 128 // hardcoded for 2.13 inch ePaper for now Height uint8 = 250 )
View Source
const ( OffsetSET = 7 OffsetCLR = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command byte
const ( DriverOutputControl Command = 0x01 BoosterSoftStartControl Command = 0x0C GateScanStartPosition Command = 0x0F DeepSleepMode Command = 0x10 DataEntryModeSetting Command = 0x11 SwReset Command = 0x12 TemperatuteSendorControl Command = 0x1A MasterActivation Command = 0x20 DisplayUpdateControl1 Command = 0x21 DisplayUpdateControl2 Command = 0x22 WriteRAM Command = 0x24 WriteVCOMRegister Command = 0x2C WriteLUTRegister Command = 0x32 SetDummyLinePeriod Command = 0x3A SetGateTime Command = 0x3B BorderWaveformControl Command = 0x3C SetRamXAddressStartEndPosition Command = 0x44 SetRamYAddressStartEndPosition Command = 0x45 SetRamXAddressCounter Command = 0x4E SetRamYAddressCounter Command = 0x4F TerminateFrameReadWrite Command = 0xFF )
type EPD ¶
type EPD struct {
// contains filtered or unexported fields
}
func (*EPD) ClearFrameMemory ¶
func (*EPD) DisplayFrame ¶
func (e *EPD) DisplayFrame()
func (*EPD) Reinitialize ¶
func (e *EPD) Reinitialize()
func (*EPD) SendCommand ¶
func (*EPD) SendData ¶
SendData sends data through SPI. Arbitrary number of bytes can be passed to this method, and they will be each sent in succession
func (*EPD) SetMemoryArea ¶
func (*EPD) SetMemoryPointer ¶
Click to show internal directories.
Click to hide internal directories.