Documentation ¶
Index ¶
- Constants
- type LCD
- func (this *LCD) Clear()
- func (this *LCD) Command(c byte)
- func (this *LCD) Data(c byte)
- func (this *LCD) Display()
- func (this *LCD) DrawBitmap(x, y byte, bitmap []byte, w, h, color byte)
- func (this *LCD) DrawChar(x, y byte, c byte)
- func (this *LCD) DrawCircle(x0, y0, r, color byte)
- func (this *LCD) DrawLine(x0, y0, x1, y1, color byte)
- func (this *LCD) DrawRect(x, y, w, h, color byte)
- func (this *LCD) DrawString(x, y byte, c interface{})
- func (this *LCD) FillCircle(x0, y0, r, color byte)
- func (this *LCD) FillRect(x, y, w, h, color byte)
- func (this *LCD) GetPixel(x, y byte) byte
- func (this *LCD) Init()
- func (this *LCD) SetContrast(val byte)
- func (this *LCD) SetCursor(x, y byte)
- func (this *LCD) SetPixel(x, y, color byte)
- func (this *LCD) Write(c byte)
Constants ¶
View Source
const ( BLACK = 1 WHITE = 0 LCDWIDTH = 84 LCDHEIGHT = 48 PCD8544_POWERDOWN = 0x04 PCD8544_ENTRYMODE = 0x02 PCD8544_EXTENDEDINSTRUCTION = 0x01 PCD8544_DISPLAYBLANK = 0x0 PCD8544_DISPLAYNORMAL = 0x4 PCD8544_DISPLAYALLON = 0x1 PCD8544_DISPLAYINVERTED = 0x5 PCD8544_FUNCTIONSET = 0x20 PCD8544_DISPLAYCONTROL = 0x08 PCD8544_SETYADDR = 0x40 PCD8544_SETXADDR = 0x80 PCD8544_SETTEMP = 0x04 PCD8544_SETBIAS = 0x10 PCD8544_SETVOP = 0x80 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LCD ¶
type LCD struct {
// contains filtered or unexported fields
}
func (*LCD) DrawCircle ¶
func (*LCD) DrawString ¶
func (*LCD) FillCircle ¶
func (*LCD) SetContrast ¶
Click to show internal directories.
Click to hide internal directories.