rev_a

package
v0.0.0-...-3750853 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 NewLcdCommA(deviceName string) (*LcdCommA, error)

func (*LcdCommA) Clear

func (l *LcdCommA) Clear() error

func (*LcdCommA) Close

func (l *LcdCommA) Close() error

func (*LcdCommA) DisplayImage

func (l *LcdCommA) DisplayImage(imageRGB656LE []byte, x, y, imageWidth, imageHeight int) error

func (*LcdCommA) Height

func (l *LcdCommA) Height() int

func (*LcdCommA) ReadData

func (l *LcdCommA) ReadData(readSize int) ([]byte, error)

func (*LcdCommA) Reset

func (l *LcdCommA) Reset() error

func (*LcdCommA) Revision

func (l *LcdCommA) Revision() string

func (*LcdCommA) ScreenOff

func (l *LcdCommA) ScreenOff() error

func (*LcdCommA) ScreenOn

func (l *LcdCommA) ScreenOn() error

func (*LcdCommA) SetBrightness

func (l *LcdCommA) SetBrightness(level int) error

func (*LcdCommA) SetOrientation

func (l *LcdCommA) SetOrientation(orientation common.Orientation) error

func (*LcdCommA) Width

func (l *LcdCommA) Width() int

func (*LcdCommA) WriteData

func (l *LcdCommA) WriteData(byteBuffer []byte) (int, error)

type RevisionResponse

type RevisionResponse []byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL