ambilight

package
v0.0.0-...-d74d36f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ambilight

type Ambilight struct {
	// Controller holds the ArtNet controller.
	Controller *dmx.ArtNetController
	// Screen holds the screen configuration.
	Screen *capture.Screen
	// Universes hods the DMX universes.
	Universes []*dmx.Universe
	// Mappings holds the screen area to DMX devices mapping.
	Mappings Mapping

	Config AmbilightConfiguration
}

Ambilight holds all the information of an ambilight.

func (*Ambilight) Go

func (a *Ambilight) Go() error

Go fires up the ambilight.

type AmbilightConfiguration

type AmbilightConfiguration struct {
	// Sleep holds the sleep time after each update in ms.
	Sleep int
}

AmbilightConfiguration holds the configuration for the ambilight.

type Mapping

type Mapping map[*image.Rectangle][]*dmx.Device

Mapping holds a mapping from screen areas to DMX devices.

func ReadConfig

func ReadConfig(configPath string) (areas []*image.Rectangle, universes []*dmx.Universe, mapping Mapping, err error)

ReadConfig reads the given config file.

Jump to

Keyboard shortcuts

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