dasung

package
v0.0.0-...-ad107f1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DasungControl

type DasungControl struct {
	// contains filtered or unexported fields
}

func NewDasungControl

func NewDasungControl(device string) (*DasungControl, error)

NewDasungControl opens the I2C device.

func (*DasungControl) ClearScreen

func (d *DasungControl) ClearScreen() error

func (*DasungControl) RawSetVCP

func (d *DasungControl) RawSetVCP(arg []byte) error

func (*DasungControl) SetContrast

func (d *DasungControl) SetContrast(level int) error

SetContrast sets the contrast to a value between 1 and 9.

func (*DasungControl) SetDitheringMode

func (d *DasungControl) SetDitheringMode(mode DitheringMode) error

SetDitheringMode sets the display dithering mode to the specified mode (M1-M4).

func (*DasungControl) SetLightIntensity

func (d *DasungControl) SetLightIntensity(light LightID, level int) error

SetLightIntensity sets the specified light intensity

func (*DasungControl) SetRefreshSpeed

func (d *DasungControl) SetRefreshSpeed(mode RefreshSpeed) error

SetRefreshSpeed sets the specified refresh mode.

type DitheringMode

type DitheringMode int
const (
	ModeM1 DitheringMode = iota + 1
	ModeM2
	ModeM3
	ModeM4
)

type LightID

type LightID int
const (
	Light1 LightID = iota + 1
	Light2
)

type RefreshSpeed

type RefreshSpeed int
const (
	SpeedFastPlusPlus RefreshSpeed = iota + 1
	SpeedFastPlus
	SpeedFast
	SpeedBlackPlus
	SpeedBlackPlusPlus
)

Jump to

Keyboard shortcuts

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