Documentation ¶
Index ¶
- Constants
- Variables
- type LCD
- type PCD8544
- func (p *PCD8544) Clear()
- func (p *PCD8544) Close()
- func (p *PCD8544) CreateChar()
- func (p *PCD8544) Display()
- func (p *PCD8544) Home()
- func (p *PCD8544) NoDisplay()
- func (p *PCD8544) SetContrast(level uint8)
- func (p *PCD8544) SetCursor(column uint8, line uint8)
- func (p *PCD8544) SetInverse(inverse bool)
- func (p *PCD8544) Write(char uint8)
Constants ¶
View Source
const ( WHITE = 0 BLACK = 1 LCDWIDTH = 84 LCDHEIGHT = 48 DISPLAY_BLANK = 0x0 DISPLAY_NORMAL = 0x4 DISPLAY_ALLON = 0x1 DISPLAY_INVERTED = 0x5 POWERDOWN = 0x04 ENTRYMODE = 0x02 EXTENDEDINSTRUCTION = 0x01 FUNCTIONSET = 0x20 DISPLAY_CONTROL = 0x08 SETYADDR = 0x40 SETXADDR = 0x80 SETTEMP = 0x04 SETBIAS = 0x10 SETVOP = 0x80 CLKCONST_1 = 8000 CLKCONST_2 = 400 LSBFIRST = 0 MSBFIRST = 1 LCD_CMD = uint8(embd.Low) LCD_DATA = uint8(embd.High) )
Variables ¶
View Source
var (
CHARSET [][5]uint8
)
Functions ¶
This section is empty.
Types ¶
type PCD8544 ¶
type PCD8544 struct { PIN_SCLK uint8 PIN_DIN uint8 PIN_DC uint8 PIN_CS uint8 PIN_RST uint8 CONTRAST uint8 // contains filtered or unexported fields }
func (*PCD8544) CreateChar ¶
func (p *PCD8544) CreateChar()
func (*PCD8544) SetContrast ¶
func (*PCD8544) SetInverse ¶
Click to show internal directories.
Click to hide internal directories.