common

package
v0.0.0-...-dddda54 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListControllerPaths

func ListControllerPaths(dir string) ([]string, error)

Types

type Controller

type Controller struct {
	Path          string
	Name          string
	MaxBrightness int
}

func NewController

func NewController(path string) (*Controller, error)

func (*Controller) GetBrightness

func (c *Controller) GetBrightness() (int, error)

func (*Controller) GetPropBytes

func (c *Controller) GetPropBytes(name string) ([]byte, error)

func (*Controller) GetPropInt

func (c *Controller) GetPropInt(name string) (int, error)

func (*Controller) GetPropString

func (c *Controller) GetPropString(name string) (string, error)

Jump to

Keyboard shortcuts

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