Documentation ¶
Index ¶
- Constants
- type AffineTransform
- type EPD
- func (this *EPD) Clear(ctx context.Context) error
- func (this *EPD) Define(cfg gopi.Config)
- func (this *EPD) Dispose() error
- func (this *EPD) Draw(ctx context.Context, src image.Image) error
- func (this *EPD) DrawMono(ctx context.Context, img image.Image) error
- func (this *EPD) DrawSized(ctx context.Context, scale float64, src image.Image) error
- func (this *EPD) New(gopi.Config) error
- func (this *EPD) Size() gopi.Size
- func (this *EPD) Sleep() error
- func (this *EPD) String() string
Constants ¶
View Source
const ( EPD_PIN_RESET = gopi.GPIOPin(17) EPD_PIN_CS = gopi.GPIOPin(8) EPD_PIN_DC = gopi.GPIOPin(25) EPD_PIN_BUSY = gopi.GPIOPin(24) EPD_SPI_SPEED = 4000000 EPD_SPI_BUS = 0 EPD_SPI_SLAVE = 0 EPD_SPI_MODE = gopi.SPI_MODE_0 )
View Source
const ( EPD_CMD_SLEEP_MODE = 0x10 EPD_CMD_SWRESET = 0x12 EPD_CMD_RAM_WRITE_BLACK = 0x24 EPD_CMD_RAM_WRITE_RED = 0x26 EPD_CMD_RAM_XADDRESS = 0x4E EPD_CMD_RAM_YADDRESS = 0x4F EPD_CMD_UPDATE = 0x20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffineTransform ¶ added in v3.0.3
func NewAffineTransform ¶ added in v3.0.3
func NewAffineTransform() AffineTransform
func (AffineTransform) Multiply ¶ added in v3.0.3
func (a AffineTransform) Multiply(b AffineTransform) AffineTransform
func (AffineTransform) Rotate ¶ added in v3.0.3
func (a AffineTransform) Rotate(theta, x, y float64) AffineTransform
func (AffineTransform) Scale ¶ added in v3.0.3
func (a AffineTransform) Scale(x, y float64) AffineTransform
func (AffineTransform) Translate ¶ added in v3.0.3
func (a AffineTransform) Translate(x, y float64) AffineTransform
Click to show internal directories.
Click to hide internal directories.