Versions in this module Expand all Collapse all v1 v1.2.0 Jun 13, 2022 v1.1.2 Jun 13, 2022 Changes in this version type Client + func (c *Client) SendAnimationGif(id int, gifImg *gif.GIF) error v1.1.1 Jun 7, 2022 Changes in this version type Client + func (c *Client) SendAnimationImgs(id, speedMs int, imgs []image.Image) error v1.1.0 Jun 6, 2022 Changes in this version type CloudChannelIdx + const CloudChannelFavorite v1.0.0 Apr 26, 2022 v0 v0.1.0 Apr 26, 2022 Changes in this version + var ErrInvalidBrightness = fmt.Errorf("brightness should be in range of 0~100") + var ErrInvalidPicNum = fmt.Errorf("pic num should be smaller than 60") + var ErrInvalidPicWidth = fmt.Errorf("pic width should be 16, 32 or 64") + var ErrInvalidScore = fmt.Errorf("score should be in range of 0~999") + var ErrInvalidWhiteBalance = fmt.Errorf("white balance should be in range of 0~100") + var ErrNotImplemented = fmt.Errorf("not implemented") + func DialType() ([]string, error) + type Channel int + const ChannelCloud + const ChannelCustom + const ChannelFaces + const ChannelInvalid + const ChannelVisualizer + type Client struct + func NewClient(d *Device) *Client + func (c *Client) ClearAllTextArea() error + func (c *Client) CloudChannel(idx int) 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, speed int, picDatas [][]byte) 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 int + const CloudChannelFacorite + const CloudChannelRecommendGallery + const CloudChannelSubscribeArtist + type CustomIdx int + const CustomIdx0 + const CustomIdx1 + const CustomIdx2 + type Device struct + DeviceID int + DeviceName string + DevicePrivateIP string + func FindDevice() ([]*Device, error) + type DeviceTimeResult struct + ErrorCode int + LocalTime string + UTCTime int + type Dial struct + ID int + Name string + func DialList(dialType string, page int) ([]Dial, error) + type FaceID struct + Brightness int + ClockID int + type Font struct + Charset string + High string + ID int + Name string + Type int + Width string + func GetFontList() ([]*Font, error) + type HourMode int + const HourMode12 + const HourMode24 + type MirrorMode int + const MirrorModeDisable + const MirrorModeEnable + type PlayGIFType int + const PlayGIFTypeFile + const PlayGIFTypeFolder + const PlayGIFTypeNet + type RotationAngle int + const RotationAngle0 + const RotationAngle180 + const RotationAngle270 + const RotationAngle90 + type StopwatchStatus int + const StopwatchStatusReset + const StopwatchStatusStart + const StopwatchStatusStop + type TempMode int + const TempModeCelsius + const TempModeFahrenheit + type TextAlign int + const TextAlighRight + const TextAlignLeft + const TextAlignMiddle + type TextDir int + const TextDirLeft + const TextDirRight + type TextFont int + const TextFont0 + const TextFont1 + const TextFont2 + const TextFont3 + const TextFont4 + const TextFont5 + const TextFont6 + const TextFont7