Documentation ¶
Index ¶
- type DasungControl
- func (d *DasungControl) ClearScreen() error
- func (d *DasungControl) RawSetVCP(arg []byte) error
- func (d *DasungControl) SetContrast(level int) error
- func (d *DasungControl) SetDitheringMode(mode DitheringMode) error
- func (d *DasungControl) SetLightIntensity(light LightID, level int) error
- func (d *DasungControl) SetRefreshSpeed(mode RefreshSpeed) error
- type DitheringMode
- type LightID
- type RefreshSpeed
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 RefreshSpeed ¶
type RefreshSpeed int
const ( SpeedFastPlusPlus RefreshSpeed = iota + 1 SpeedFastPlus SpeedFast SpeedBlackPlus SpeedBlackPlusPlus )
Click to show internal directories.
Click to hide internal directories.