Documentation
¶
Index ¶
- Variables
- type Command
- type LcdCommA
- func (l *LcdCommA) Clear() error
- func (l *LcdCommA) Close() error
- func (l *LcdCommA) DisplayImage(imageRGB656LE []byte, x, y, imageWidth, imageHeight int) error
- func (l *LcdCommA) Height() int
- func (l *LcdCommA) ReadData(readSize int) ([]byte, error)
- func (l *LcdCommA) Reset() error
- func (l *LcdCommA) Revision() string
- func (l *LcdCommA) ScreenOff() error
- func (l *LcdCommA) ScreenOn() error
- func (l *LcdCommA) SetBrightness(level int) error
- func (l *LcdCommA) SetOrientation(orientation common.Orientation) error
- func (l *LcdCommA) Width() int
- func (l *LcdCommA) WriteData(byteBuffer []byte) (int, error)
- type RevisionResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TURING_3_5 RevisionResponse = []byte{} USBMONITOR_3_5 RevisionResponse = []byte{0x01, 0x01, 0x01, 0x01, 0x01, 0x01} USBMONITOR_5 RevisionResponse = []byte{0x02, 0x02, 0x02, 0x02, 0x02, 0x02} USBMONITOR_7 RevisionResponse = []byte{0x03, 0x03, 0x03, 0x03, 0x03, 0x03} REVISION_TURING_3_5 string = "Turing 3.5" REVISION_USBMONITOR_3_5 string = "USB Monitor 3.5" REVISION_USBMONITOR_5 string = "USB Monitor 5" REVISION_USBMONITOR_7 string = "USB Monitor 7" )
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command byte
const ( CMD_RESET Command = 101 CMD_CLEAR Command = 102 CMD_TO_BLACK Command = 103 CMD_SCREEN_OFF Command = 108 CMD_SCREEN_ON Command = 109 CMD_SET_BRIGHTNESS Command = 110 CMD_SET_ORIENTATION Command = 121 CMD_DISPLAY_BITMAP Command = 197 // next generation commands CMD_LCD_28 Command = 40 CMD_LCD_29 Command = 41 CMD_HELLO Command = 69 CMD_SET_MIRROR Command = 122 CMD_DISPLAY_PIXELS Command = 195 )
type LcdCommA ¶
type LcdCommA struct {
// contains filtered or unexported fields
}
func NewLcdCommA ¶
func (*LcdCommA) DisplayImage ¶
func (*LcdCommA) SetBrightness ¶
func (*LcdCommA) SetOrientation ¶
func (l *LcdCommA) SetOrientation(orientation common.Orientation) error
type RevisionResponse ¶
type RevisionResponse []byte
Click to show internal directories.
Click to hide internal directories.