glk19264a

package
v0.0.0-...-aa3ce0d Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

* Package to send commands and recieve response to and from glk19264a device. *

Index

Constants

View Source
const (
	OPENED uint32 = iota
	CLOSED
)
View Source
const (
	OFF int = iota
	GREEN
	RED
	YELLOW
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Display

type Display interface {
	Open() bool
	Close() bool
	ClrScreen() int
	ClrWindow(int) int
	Text(string) int
	Send([]byte) int
	SendRecv([]byte, bool) (int, []byte)
	ColRow(int, int) int
	TextColRow(int, int) func(string) int
	BitmapUpload(int, string) (int, error)
	BitmapDraw(int, int, int) int
	BitmapDrawFile(int, int, string) (int, error)
	BitmapDrawData(int, int, []byte) int
	BuzzerActive(int, int) int
	BackLigthOff() int
	BackLigthON(int) int
	Led(int, int) int
	KeyPadOff() int
	KeyPadON(int) int
	Font(int) int
	InitTextWindow(int, int, int, int, int, int, int, int, int) int
	SetTextWindow(int) int
	Rectangle(int, int, int, int, int) int
	WriteScratch(int, []byte) int
	ReadScratch(int, int) (int, []byte)
	AutoTransmKey(bool) int
	PollKey() []int
}

func NewDisplay

func NewDisplay(opt *PortOptions) Display

Create a new display

type PortOptions

type PortOptions struct {
	Port string
	Baud int
}

Options to open comunication channel with device

Jump to

Keyboard shortcuts

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