tilt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger log.Logger
View Source
var TiltMap = map[string]string{
	"a495bb30c5b14b44b5121370f02d74de": "BLACK",
	"a495bb60c5b14b44b5121370f02d74de": "BLUE",
	"a495bb20c5b14b44b5121370f02d74de": "GREEN",
	"a495bb50c5b14b44b5121370f02d74de": "ORANGE",
	"a495bb80c5b14b44b5121370f02d74de": "PINK",
	"a495bb40c5b14b44b5121370f02d74de": "PURPLE",
	"a495bb10c5b14b44b5121370f02d74de": "RED",
	"a495bb70c5b14b44b5121370f02d74de": "YELLOW",
	"a495bb90c5b14b44b5121370f02d74de": "TEST",
	"25cc0b60914de76ead903f903bfd5e53": "MIGHTY",
}

Functions

func EnableLogging

func EnableLogging()

func SetLogging

func SetLogging(logLevel string)

Types

type Config

type Config struct {
	ConfigFile     string
	ConfigData     *viper.Viper
	EnabledEmitter string
}

func ParseConfig

func ParseConfig(configFile string) Config

type Payload added in v1.1.0

type Payload struct {
	ID        string
	Mac       string
	Color     string `validate:"required"`
	Major     uint16
	Minor     uint16
	Rssi      int
	Timestamp int64
}

Jump to

Keyboard shortcuts

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