StreamDock293
streamDock293
inherits from streamDock
class
Get the firmware version of the device
/*
@note: Get the firmware version of the device
@param lenth: The length of the firmware version
@return Returns the first address of the array where the firmware version number is stored. If an error occurs, it returns null
*/
unsigned char *getFirmVersion(int lenth );
Set the brightness of the device screen
/*
@note: Set the brightness of the device screen. If the value passed in is less than 0, the value will be pulled back to 0. If it is greater than 100, it will be pulled back to 100
@param percent: Brightness value 1-100
@return Success returns 0. If an error occurs, it returns -1
*/
int setBrightness(int percent);
Set the background image of the device screen
/*
@note: Set the background image of the device screen
@param path: The path of the image
@return Success returns 1, if an error returns -1
*/
int setBackgroundImg(std::string path);
Receive information sent by the device
/*
@note: Receive information sent by the device
@return Success returns the first address of the array obtained, if an error returns NULL
*/
unsigned char * read();
Set the icon of the device button
/*
@note: Set the icon of the device button
@param path: The path of the image
@return Success returns 1, if an error returns -1
*/
int setKeyImg(std::string path,int key);