led

package
v0.0.0-...-dd3684d Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Led

type Led struct {
	Id            string `json:"id"`
	Color         int    `json:"color"`
	OverrideColor int    `json:"overrideColor"`
	IsForced      bool   `json:"isForced"`
}

type Leds

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

func OpenLeds

func OpenLeds(device string) (*Leds, error)

func (*Leds) GetStatus

func (l *Leds) GetStatus() ([]Led, error)

func (*Leds) Run

func (l *Leds) Run() error

Run will block until an error occurs. The error will never be nil.

func (*Leds) Send

func (l *Leds) Send(cmd string) error

func (*Leds) SetLed

func (l *Leds) SetLed(led Led) error

type Response

type Response struct {
	Ok   bool
	Type string
	Msg  string
}

Jump to

Keyboard shortcuts

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