Documentation ¶
Overview ¶
Package pcd8544 implements a driver for the PCD8544 48x84 pixels matrix LCD, used in Nokia's 5110 and 3310 phones.
Datasheet: http://eia.udg.edu/~forest/PCD8544_1.pdf
Index ¶
- Constants
- type Config
- type Device
- func (d *Device) ClearBuffer()
- func (d *Device) ClearDisplay()
- func (d *Device) Configure(cfg Config)
- func (d *Device) Display() error
- func (d *Device) GetPixel(x int16, y int16) bool
- func (d *Device) SendCommand(command uint8)
- func (d *Device) SendData(data uint8)
- func (d *Device) SetBuffer(buffer []byte) error
- func (d *Device) SetPixel(x int16, y int16, c color.RGBA)
- func (d *Device) Size() (w, h int16)
Constants ¶
View Source
const ( POWERDOWN = 0x04 ENTRYMODE = 0x02 EXTENDEDINSTRUCTION = 0x01 FUNCTIONSET = 0x20 DISPLAYCONTROL = 0x08 DISPLAYBLANK = 0x0 DISPLAYNORMAL = 0x04 DISPLAYALLON = 0x01 DISPLAYINVERTED = 0x05 SETYADDR = 0x40 SETXADDR = 0x80 SETTEMP = 0x04 SETBIAS = 0x10 SETVOP = 0x80 )
Registers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
Device wraps an SPI connection.
func (*Device) ClearDisplay ¶
func (d *Device) ClearDisplay()
ClearDisplay clears the image buffer and clear the display
func (*Device) SendCommand ¶
SendCommand sends a command to the display
Click to show internal directories.
Click to hide internal directories.