commands

package
v0.0.0-...-51c700d Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNumberOfFixtures

func GetNumberOfFixtures(sequenceNumber int, fixtures *fixture.Fixtures) int

func ListenCommandChannelAndWait

func ListenCommandChannelAndWait(mySequenceNumber int, currentSpeed time.Duration, sequence common.Sequence, channels common.Channels, fixturesConfig *fixture.Fixtures) common.Sequence

listenCommandChannelAndWait listens on channel for instructions or timeout and go to next step of sequence.

func LoadSwitchConfiguration

func LoadSwitchConfiguration(mySequenceNumber int, fixturesConfig *fixture.Fixtures) map[int]common.Switch

func SetAvalableFixtures

func SetAvalableFixtures(fixturesConfig *fixture.Fixtures) []common.StaticColorButton

func SetSpeed

func SetSpeed(commandSpeed int) (Speed time.Duration)

Used to convert a speed to a millisecond time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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