StreamDock Base Class
The control class of all specific models needs to inherit the StreamDock base class. The StreamDock base class provides the following methods:
Get the firmware version of the device
unsigned char *streamDock::getFirmVersion(int lenth)
Open the device
int streamDock::open()
Close device
int streamDock::disconnected()
Set the brightness of the device screen
int streamDock::setBrightness(int percent)
Set background picture of the device screen
int streamDock::setBackgroundImg(std::string path)
Set the background image of the device screen through a vector container that stores RGB data
int streamDock::setBackgroundImgData(std::vector<unsigned char>buffer, int width, int height)
Information sent by the device
unsigned char * streamDock::read()
Set the icon of the device button
int streamDock::setKeyImg(std::string path,int key)
Set the icon of the device button
int setKeyImgData(unsigned char* imagedata, int width, int height, int key);
Clear a key icon
int streamDock::cleaerIcon(int index)
All key icons are cleared
int streamDock::clearAllIcon()
Wake up the screen
int streamDock::wakeScreen()
Refresh the display after the transmission data is completed
int streamDock::refresh()