StreamDock 基类
所有具体型号设备的控制类都需要继承StreamDock基类,StreamDock基类提供了以下方法:
获取设备的固件版本
unsigned char *streamDock::getFirmVersion(int lenth)
打开设备
int streamDock::open()
关闭设备
int streamDock::disconnected()
设置设备屏幕的亮度
int streamDock::setBrightness(int percent)
设置设备屏幕的背景图片
int streamDock::setBackgroundImg(std::string path)
设置设备屏幕的背景图片通过存有RGB数据的vector容器
int streamDock::setBackgroundImgData(std::vector<unsigned char>buffer, int width, int height)
接受设备发送的信息
unsigned char * streamDock::read()
设置设备按键的图标
int streamDock::setKeyImg(std::string path,int key)
设置设备按键的图标
int setKeyImgData(unsigned char* imagedata, int width, int height, int key);
清空某个按键图标
int streamDock::cleaerIcon(int index)
清空所有按键图标
int streamDock::clearAllIcon()
唤醒屏幕
int streamDock::wakeScreen()
在传输数据完成后刷新显示
int streamDock::refresh()