StreamDock293
streamdock293
inherits from streamdock
Get the firmware version of the device
/*
@Note: Get the firmware version of the device
@Param Lenth : length of the firmware version
@Return Return to the first address of the array of the version number of the firmware version, if there is an error, return to the air
*/
unsigned char* streamDock293::getFirmVersion(int lenth)
Set the brightness of the device screen
/*
@Note: Set the brightness of the device screen. If the value is passed less than 0, the value will be pulled back 0, if it is greater than 100
@Param Percent: The value of brightness is 1-100
@Return successfully returned 0, if there is an error, return -1
*/
int streamDock293::setBrightness(int percent)
Set background picture of the device screen
/*
@Note: Set background picture of the device screen
@param Path: The path of the picture
@Return successfully returned 1, if there is an error, return -1
*/
int streamDock293::setBackgroundImg(std::string path)
Set the background image of the device screen through a vector container that stores RGB data
/*
@note: Set the background image of the device screen
@param buffer: vector container that stores RGB data
@param width: image width
@param buffer: image height
@return Returns 1 if successful, -1 if an error occurs
*/
int setBackgroundImgData(std::vector<unsigned char>buffer, int width, int height);
Information sent by the device
/*
@Note: Information sent by the device.When the data transmission is successful, ack ok will be returned. When the device connection is activated, pressing the button will return an unsigned char array. The byte with subscript 9 is the button number, and the byte with subscript 10 stores the button status 0x00 lifted, 0x01 pressed
@Return successfully returns the first address of the array obtained, if there is an error, return NULL
*/
unsigned char* streamDock293::read()
Set the icon of the device button
/*
@Note: Set the icon of the device button
@param Path: The path of the picture
@Return successfully returned 1, if there is an error, return -1
*/
int streamDock293::setKeyImg(std::string path, int key)
Set the device button icon
/*
@note: Set the button image on the device screen
@param path: array storing image data
@return returns 1 if successful, -1 if an error occurs
*/
int setKeyImgData(unsigned char* imagedata, int width, int height, int key);