rgbled

package
v0.0.0-...-baaaa93 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blue

func Blue(rgbLEDs []RGBLED) error

Blue makes all RGB-LEDs which are passed as parameters light up blue.

func CustomColor

func CustomColor(rgbLEDs []RGBLED, color types.LEDColor) error

CustomColor makes all RGB-LEDs which are passed as parameters light up in custom color.

func Error

func Error(rgbLEDs []RGBLED) error

Error makes all RGB-LEDs which are passed as parameters light up in their error specified color.

func Green

func Green(rgbLEDs []RGBLED) error

Green makes all RGB-LEDs which are passed as parameters light up in green.

func Logfile

func Logfile(rgbLEDs []RGBLED) error

Logfile makes all RGB-LEDs which are passed as parameters light up in their logfile specified color.

func Off

func Off(rgbLEDs []RGBLED) error

Off turns all RGB-LEDs which are passes as parameters off.

func Purple

func Purple(rgbLEDs []RGBLED) error

Purple makes all RGB-LEDs which are passed as parameters light up in purple.

func Red

func Red(rgbLEDs []RGBLED) error

Red makes all RGB-LEDs which are passed as parameters light up in red.

func Run

func Run(rgbLEDs []RGBLED) error

Run makes all RGB-LEDs which are passed as parameters light up in their run specified color.

func Sync

func Sync(rgbLEDs []RGBLED) error

Sync makes all RGB-LEDs which are passed as parameters light up in their sync specified color.

func Turquoise

func Turquoise(rgbLEDs []RGBLED) error

Turquoise makes all RGB-LEDs which are passed as parameters light up in turquoise.

func Warn

func Warn(rgbLEDs []RGBLED) error

Warn makes all RGB-LEDs which are passed as parameters light up in their warn specified color.

func White

func White(rgbLEDs []RGBLED) error

White makes all RGB-LEDs which are passed as parameters light up in white.

func Yellow

func Yellow(rgbLEDs []RGBLED) error

Yellow makes all RGB-LEDs which are passed as parameters light up in yellow.

Types

type DefaultRGBLED

type DefaultRGBLED struct {
	*types.RGBLED
}

DefaultRGBLED is a RGBLED which implement all functions of the interface RGBLED

func (*DefaultRGBLED) Blue

func (rgbled *DefaultRGBLED) Blue() error

Blue makes the RGBLED shine in blue

func (*DefaultRGBLED) Error

func (rgbled *DefaultRGBLED) Error() error

Error makes the RGBLED shine in the error specified color

func (*DefaultRGBLED) Green

func (rgbled *DefaultRGBLED) Green() error

Green makes the RGBLED shine in green

func (*DefaultRGBLED) Logfile

func (rgbled *DefaultRGBLED) Logfile() error

Logfile makes the RGBLED shine in the logfile specified color

func (*DefaultRGBLED) Off

func (rgbled *DefaultRGBLED) Off() error

Off turns on the RGBLED off

func (*DefaultRGBLED) On

func (rgbled *DefaultRGBLED) On() error

On turns on the RGBLED

func (*DefaultRGBLED) Purple

func (rgbled *DefaultRGBLED) Purple() error

Purple makes the RGBLED shine in purple

func (*DefaultRGBLED) Red

func (rgbled *DefaultRGBLED) Red() error

Red makes the RGBLED shine in red

func (*DefaultRGBLED) Run

func (rgbled *DefaultRGBLED) Run() error

Run makes the RGBLED shine in the run specified color

func (*DefaultRGBLED) Sync

func (rgbled *DefaultRGBLED) Sync() error

Sync makes the RGBLED shine in the sync specified color

func (*DefaultRGBLED) Turquoise

func (rgbled *DefaultRGBLED) Turquoise() error

Turquoise makes the RGBLED shine in turquoise

func (*DefaultRGBLED) Warn

func (rgbled *DefaultRGBLED) Warn() error

Warn makes the RGBLED shine in the warn specified color

func (*DefaultRGBLED) White

func (rgbled *DefaultRGBLED) White() error

White makes the RGBLED shine in white

func (*DefaultRGBLED) Yellow

func (rgbled *DefaultRGBLED) Yellow() error

Yellow makes the RGBLED shine in yellow

type RGBLED

type RGBLED interface {
	Blue() error
	Green() error
	Purple() error
	Red() error
	Turquoise() error
	White() error
	Yellow() error

	Error() error
	Logfile() error
	Run() error
	Sync() error
	Warn() error

	On() error
	Off() error
}

RGBLED is an interface that discribes all needed functions for a RGBLED

Jump to

Keyboard shortcuts

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