ledserver

package
v0.0.0-...-280ab5a Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: BSD-2-Clause Imports: 13 Imported by: 0

README

this is the small component that runs as root to show the lights, communicates with the other processes over go rpc over a named pipe

Documentation

Index

Constants

View Source
const Pipefile = "/tmp/ledserver.sock"

Variables

This section is empty.

Functions

func ThermalHigh

func ThermalHigh()

func ThermalNormal

func ThermalNormal()

Types

type Command

type Command struct {
	Command CommandCode
	Color   color.RGBA
}

type CommandCode

type CommandCode int
const (
	AllOn CommandCode = iota
	Startup
	Rainbow
	Off
)

type HSB

type HSB struct {
	H float64
	S float64
	B int
}

func (HSB) ToRGB

func (hsb HSB) ToRGB() color.RGBA

type LED

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

func (*LED) Init

func (l *LED) Init() error

func (*LED) Set

func (l *LED) Set(cmd *Command, res *Result) error

func (*LED) Shutdown

func (l *LED) Shutdown()

type LedServer

type LedServer struct {
	*accessory.A

	Lightbulb *LedServerSvc
}

func NewLedServer

func NewLedServer(info accessory.Info, l *LED) *LedServer

type LedServerSvc

type LedServerSvc struct {
	*service.S

	On         *characteristic.On
	Brightness *characteristic.Brightness
	Saturation *characteristic.Saturation
	Hue        *characteristic.Hue
	// contains filtered or unexported fields
}

func NewLedServerSvc

func NewLedServerSvc(l *LED) *LedServerSvc

type Result

type Result bool

Jump to

Keyboard shortcuts

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