|
在编译到 ReadColor函数时,提示错误:
“ while(!ReadSensorColorEx(IN_1,colorval,raw,norm,scaled));”
Error: Undefined Identifier ReadSensorColorEx。请教如何解决?
我的BricxCC为3389
void ReadColor(int face, int pos)
{
int colorval;
unsigned int raw[];
unsigned int norm[];
int scaled[];
while(!ReadSensorColorEx(IN_1,colorval,raw,norm,scaled));
int tile=Tile(face,pos);
cubeColor[tile].colorval=colorval;
cubeColor[tile].red=norm[0];
cubeColor[tile].green=norm[1];
cubeColor[tile].blue=norm[2];
cubeColor[tile].rawRed=raw[0];
cubeColor[tile].rawGreen=raw[1];
cubeColor[tile].rawBlue=raw[2];
}
|
|