Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2023 Changes in this version + var Client = http.DefaultClient + type Anim struct + Frames []*Image + func NewAnim() *Anim + func (a *Anim) AppendFrame(img image.Image, time int) error + func (a *Anim) SendTo(dev *Pixoo64) error + type Config struct + Brightness int + ClockTime int + CurClockId int + GalleryShowTimeFlag int + GalleryTime int + GyrateAngle int + LightSwitch int + MirrorFlag int + PowerOnChannelId int + RotationFlag int + SingleGalleyTime int + TemperatureMode int + Time24Flag int + type GetHttpGifId struct + PicId int + type Image struct + Pix []uint8 + Rect image.Rectangle + Stride int + Time int + func ConvertImage(img image.Image, time int) (*Image, error) + func NewImage(size, time int) (*Image, error) + func (i *Image) At(x, y int) color.Color + func (i *Image) Bounds() image.Rectangle + func (i *Image) ColorModel() color.Model + func (i *Image) PixOffset(x, y int) int + func (i *Image) RGBAAt(x, y int) color.RGBA + func (i *Image) SendTo(dev *Pixoo64) error + func (i *Image) Set(x, y int, c color.Color) + func (i *Image) SetRGBA(x, y int, c color.RGBA) + func (i *Image) SubImage(r image.Rectangle) image.Image + type Pixoo64 struct + DeviceId int + DeviceMac string + DeviceName string + DevicePrivateIP string + func FindFirst() (*Pixoo64, error) + func FindId(id int) (*Pixoo64, error) + func FindMac(mac string) (*Pixoo64, error) + func FindName(name string) (*Pixoo64, error) + func New(addr string) *Pixoo64 + func SameLANDevices() ([]*Pixoo64, error) + func (dev *Pixoo64) GetUser() (*User, error) + func (dev *Pixoo64) SelectChannel(ch int) error + func (p *Pixoo64) Buzzer(activeTime, offTime, totalTime int) error + func (p *Pixoo64) GetAllConf() (*Config, error) + func (p *Pixoo64) GetDeviceTime() (*Time, error) + func (p *Pixoo64) GetWeatherInfo() (*WeatherInfo, error) + func (p *Pixoo64) Reboot() error + func (p *Pixoo64) ResetHttpGifId() error + func (p *Pixoo64) ScreenSwitch(state bool) error + func (p *Pixoo64) SetBrightness(v int) error + func (p *Pixoo64) SetLocation(long, lat float64) error + func (p *Pixoo64) SetTime(t time.Time) error + func (p *Pixoo64) SetTimezone(tz string) error + func (p *Pixoo64) ShortBeeps(count int) error + type Time struct + LocalTime string + UTCTime int64 + func (t *Time) Time() time.Time + type User struct + FansCnt int + HeadId string + Level int + LikeCnt int + Nickname string + Score int + type WeatherInfo struct + CurTemp float64 + Humidity int + MaxTemp float64 + MinTemp float64 + Pressure int + Visibility int + Weather string + WindSpeed float64