1
我試圖做一個顏色數組,但不幸的是廷克庫似乎不支持數組:Arduino:列表?或同等
Tinker::Vect3d<float> rndCol[5];
rndCol[0] = {255,0,0};
rndCol[1] = {0,255,0};
rndCol[2] = {0,0,255};
rndCol[3] = {255,165,0};
rndCol[4] = {5,125,200};
。
soundLvel:47: error: expected constructor, destructor, or type conversion before '=' token
soundLvel:48: error: expected constructor, destructor, or type conversion before '=' token
soundLvel:49: error: expected constructor, destructor, or type conversion before '=' token
soundLvel:50: error: expected constructor, destructor, or type conversion before '=' token
soundLvel:51: error: expected constructor, destructor, or type conversion before '=' token
因此,Arduino的支持列表或相當於我可以存儲這些英寸我無法找到任何參考。