Documentation ¶
Index ¶
- type Controller
- func (c *Controller) GetInput() (result int)
- func (c *Controller) GetMute() (result bool)
- func (c *Controller) GetPowerStatus() (result bool)
- func (c *Controller) GetVolume() (result int)
- func (c *Controller) MuteOff()
- func (c *Controller) MuteOn()
- func (c *Controller) PowerOff()
- func (c *Controller) PowerOn()
- func (c *Controller) Prepare()
- func (c *Controller) QuickResetVideo()
- func (c *Controller) Reset()
- func (c *Controller) ResetVideo()
- func (c *Controller) SetInput(hdmi_input int)
- func (c *Controller) SetVolume(volume_level int)
- func (c *Controller) Status() (result Status)
- func (c *Controller) WakeOnLAN()
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Type string `yaml:"type"` Config *types.ConfigFile `yaml:"-"` LG *lg_tv.Controller `yaml:"-"` VIZIO *vizio_tv.Controller `yaml:"-"` HDMICEC *hdmi_cec.Controller `yaml:"-"` IR *ir.Controller `yaml:"-"` LG_Ready bool `yaml:"-"` VIZIO_Ready bool `yaml:"-"` SAMSUNG_Ready bool `yaml:"-"` IR_Ready bool `yaml:"-"` HDMI_CEC_Ready bool `yaml:"-"` }
func New ¶
func New(config *types.ConfigFile) (result *Controller)
func (*Controller) GetInput ¶
func (c *Controller) GetInput() (result int)
func (*Controller) GetMute ¶
func (c *Controller) GetMute() (result bool)
func (*Controller) GetPowerStatus ¶
func (c *Controller) GetPowerStatus() (result bool)
func (*Controller) GetVolume ¶
func (c *Controller) GetVolume() (result int)
func (*Controller) MuteOff ¶
func (c *Controller) MuteOff()
func (*Controller) MuteOn ¶
func (c *Controller) MuteOn()
func (*Controller) PowerOff ¶
func (c *Controller) PowerOff()
func (*Controller) PowerOn ¶
func (c *Controller) PowerOn()
func (*Controller) Prepare ¶
func (c *Controller) Prepare()
func (*Controller) QuickResetVideo ¶ added in v1.0.5
func (c *Controller) QuickResetVideo()
func (*Controller) Reset ¶
func (c *Controller) Reset()
func (*Controller) ResetVideo ¶
func (c *Controller) ResetVideo()
func (*Controller) SetInput ¶
func (c *Controller) SetInput(hdmi_input int)
func (*Controller) SetVolume ¶
func (c *Controller) SetVolume(volume_level int)
func (*Controller) Status ¶
func (c *Controller) Status() (result Status)
func (*Controller) WakeOnLAN ¶
func (c *Controller) WakeOnLAN()
Click to show internal directories.
Click to hide internal directories.