Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
42
Attached table 17 Obtain the cube numbers that the pixy detects
Attached table 18 Set the numbers of cubes that need to be placed
Attached table 19 Obtain the numbers of cubes that are placed
Attached table 20 Set the cube height
Prototype
char SmartKit_VISSetBlockTA(char color, float x, float y, float z, float r)
Description
Set the placing position of the cube
Parameter
color: Cube color. Value range: RED, BLUE, YELLOW, GREEN
x: X-axis coordinate of the placing position
y: Y-axis coordinate of the placing position
z: Z-axis coordinate of the placing position
r: R-axis coordinate of the placing position
Return
TRUE: The setting is successful
FALSE: The setting is failed
Prototype
char SmartKit_VISGetBlockCheckNum(char color)
Description
Obtain the cube numbers of each color that the pixy detects
Parameter
color: Cube color. Value range: RED, BLUE, YELLOW, GREEN
Return
Cube numbers
Prototype
char SmartKit_VISSetBlockPlaceNum(char color, int placeNum)
Description
Set the numbers of cubes of each color that need to be placed
Parameter
color: Cube color. Value range: RED, BLUE, YELLOW, GREEN
placeNum: Cube numbers
Return
TRUE: The setting is successful
FALSE: The setting is failed
Prototype
char SmartKit_VISGetBlockPlaceNum(char color)
Description
Obtain the numbers of cubes of each color that are placed
Parameter
color: Cube color. Value range: RED, BLUE, YELLOW, GREEN
Return
Cube numbers
Prototype
char SmartKit_VISSetBlockHeight(char color, float height)
Description
Set the cube height