Documentation
¶
Index ¶
- Variables
- func DialType() ([]string, error)
- type Channel
- type Client
- func (c *Client) ClearAllTextArea() error
- func (c *Client) CloudChannel(idx CloudChannelIdx) error
- func (c *Client) CustomChannel(idx CustomIdx) error
- func (c *Client) GetAllSetting() (map[string]interface{}, error)
- func (c *Client) GetCurrentChannel() (Channel, error)
- func (c *Client) GetDeviceTime() (*DeviceTimeResult, error)
- func (c *Client) GetSelectFaceID() (*FaceID, error)
- func (c *Client) GetSendingAnimationPicID() (int, error)
- func (c *Client) PlayGif(t PlayGIFType, name string) error
- func (c *Client) ResetSendingAnimationPicID() error
- func (c *Client) ScreenSwitch(on bool) error
- func (c *Client) SelectChannel(idx Channel) error
- func (c *Client) SelectFacesChannel(id int) error
- func (c *Client) SendAnimation(width, id int, speedMSecs []int, picDatas [][]byte) error
- func (c *Client) SendAnimationGif(id int, gifImg *gif.GIF) error
- func (c *Client) SendAnimationImgs(id int, speedMSecs []int, imgs []image.Image) error
- func (c *Client) SendDisplayList() error
- func (c *Client) SendText(id, x, y int, dir TextDir, font TextFont, width int, str string, speed int, ...) error
- func (c *Client) SetBrightness(brightness int) error
- func (c *Client) SetCountdownTool(dur time.Duration, start bool) error
- func (c *Client) SetHighLightMode(on bool) error
- func (c *Client) SetHourMode(hm HourMode) error
- func (c *Client) SetMirrorMode(on MirrorMode) error
- func (c *Client) SetNoiseTool(on bool) error
- func (c *Client) SetRotationAngle(angle RotationAngle) error
- func (c *Client) SetScoreboardTool(red, blue int) error
- func (c *Client) SetStopwatchTool(s StopwatchStatus) error
- func (c *Client) SetTemperatureMode(tempMode TempMode) error
- func (c *Client) SetTimeZone(timezone string) error
- func (c *Client) SetWhiteBalance(r, g, b int) error
- func (c *Client) SystemTime(utcTime string) error
- func (c *Client) VisualizerChannel(idx int) error
- func (c *Client) WeatherAreaSetting(long, lat string) error
- type CloudChannelIdx
- type CustomIdx
- type Device
- type DeviceTimeResult
- type Dial
- type FaceID
- type Font
- type HourMode
- type MirrorMode
- type PlayGIFType
- type RotationAngle
- type StopwatchStatus
- type TempMode
- type TextAlign
- type TextDir
- type TextFont
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidBrightness = fmt.Errorf("brightness should be in range of 0~100") ErrInvalidWhiteBalance = fmt.Errorf("white balance should be in range of 0~100") ErrInvalidScore = fmt.Errorf("score should be in range of 0~999") ErrInvalidPicNum = fmt.Errorf("pic num should be smaller than 60") ErrInvalidPicWidth = fmt.Errorf("pic width should be 16, 32 or 64") ErrNotImplemented = fmt.Errorf("not implemented") )
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ClearAllTextArea ¶
func (*Client) CloudChannel ¶
func (c *Client) CloudChannel(idx CloudChannelIdx) error
func (*Client) CustomChannel ¶
func (*Client) GetAllSetting ¶
func (*Client) GetCurrentChannel ¶
func (*Client) GetDeviceTime ¶
func (c *Client) GetDeviceTime() (*DeviceTimeResult, error)
func (*Client) GetSelectFaceID ¶
func (*Client) GetSendingAnimationPicID ¶
func (*Client) ResetSendingAnimationPicID ¶
func (*Client) ScreenSwitch ¶
func (*Client) SelectChannel ¶
func (*Client) SelectFacesChannel ¶
func (*Client) SendAnimation ¶
func (*Client) SendAnimationGif ¶ added in v1.1.2
func (*Client) SendAnimationImgs ¶ added in v1.1.1
func (*Client) SetBrightness ¶
func (*Client) SetCountdownTool ¶
func (*Client) SetHighLightMode ¶
func (*Client) SetHourMode ¶
func (*Client) SetMirrorMode ¶
func (c *Client) SetMirrorMode(on MirrorMode) error
func (*Client) SetNoiseTool ¶
func (*Client) SetRotationAngle ¶
func (c *Client) SetRotationAngle(angle RotationAngle) error
func (*Client) SetScoreboardTool ¶
func (*Client) SetStopwatchTool ¶
func (c *Client) SetStopwatchTool(s StopwatchStatus) error
func (*Client) SetTemperatureMode ¶
func (*Client) SetTimeZone ¶
func (*Client) SetWhiteBalance ¶
func (*Client) SystemTime ¶
func (*Client) VisualizerChannel ¶
func (*Client) WeatherAreaSetting ¶
type CloudChannelIdx ¶
type CloudChannelIdx int
const ( CloudChannelRecommendGallery CloudChannelIdx = iota CloudChannelFavorite CloudChannelSubscribeArtist )
type Device ¶
type Device struct { DeviceName string `json:"DeviceName"` DeviceID int `json:"DeviceId"` DevicePrivateIP string `json:"DevicePrivateIP"` }
func FindDevice ¶
type DeviceTimeResult ¶
type Font ¶
type Font struct { ID int `json:"id"` Name string `json:"name"` Width string `json:"width"` High string `json:"high"` Charset string `json:"charset"` Type int `json:"type"` }
func GetFontList ¶
type MirrorMode ¶
type MirrorMode int
const ( MirrorModeDisable MirrorMode = iota MirrorModeEnable )
type PlayGIFType ¶
type PlayGIFType int
const ( PlayGIFTypeFile PlayGIFType = iota PlayGIFTypeFolder PlayGIFTypeNet )
type RotationAngle ¶
type RotationAngle int
const ( RotationAngle0 RotationAngle = iota RotationAngle90 RotationAngle180 RotationAngle270 )
type StopwatchStatus ¶
type StopwatchStatus int
const ( StopwatchStatusStop StopwatchStatus = iota StopwatchStatusStart StopwatchStatusReset )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.