C Arduino中的数组

C Arduino中的数组,c,arrays,arduino,C,Arrays,Arduino,我在创建数组数组时遇到问题。以下是我的程序代码: const unsigned char one[] PROGMEM = { }; const unsigned char two[] PROGMEM = { }; const unsigned char three[] PROGMEM = { }; const unsigned char four[] PROGMEM = { }; const unsigned char five[] PROGMEM = { }; const unsi

我在创建数组数组时遇到问题。以下是我的程序代码:

const unsigned char one[] PROGMEM = {

};

const unsigned char two[] PROGMEM = {

};
const unsigned char three[] PROGMEM = {

};
const unsigned char four[] PROGMEM = {

};
const unsigned char five[] PROGMEM = {

};
const unsigned char six[] PROGMEM = {

};
const unsigned char seven[] PROGMEM = {

};
const unsigned char eight[] PROGMEM = {

};
const unsigned char nine[] PROGMEM = {

};

const unsigned char array[] PROGMEM = {const unsigned char one[],const     unsigned char two[],const unsigned char three[],const unsigned char four[],const unsigned char five[],const unsigned char six[],const unsigned char seven[],const unsigned char eight[],const unsigned char nine[]};
另外,在我的void设置中,还有另一个功能:

const void make(int x, int y,const unsigned char array[], 67,67){
它给了我一些奇怪的错误,比如:

Mattplztestit:17: error: expected identifier before numeric constant
Mattplztestit:17: error: expected ',' or '...' before numeric constant
Mattplztestit:178: error: expected identifier before numeric constant
Mattplztestit:178: error: expected ',' or '...' before numeric constant
Mattplztestit.ino: In function 'const void make(int, int, const unsigned char*, int)':
Mattplztestit:179: error: expected initializer before '<=' token
Mattplztestit:179: error: expected ';' before '<=' token
Mattplztestit:179: error: expected primary-expression before '<=' token
Mattplztestit.ino: In function 'void constr(int)':
Mattplztestit:193: error: too many arguments to function 'const void make(int, int, const unsigned char*, int)'
Mattplztestit.ino:178:12: note: declared here
Mattplztestit:194: error: expected ';' before '}' token
Mattplztestit:17:错误:数字常量前应为标识符
Mattplztestit:17:错误:数字常量前应为“,”或“…”
Mattplztestit:178:错误:数字常量前应有标识符
Mattplztestit:178:错误:数字常量前应为“,”或“…”
Mattplztestit.ino:在函数“const void make(int,int,const unsigned char*,int)”中:
Mattplztestit:179:错误:如果它告诉您数组衰减到指向其第一个元素的指针,则在“之前应为初始值设定项,这意味着您可以拥有一个指针数组,并用指向其他数组的指针填充该数组

差不多

const unsigned char* array[] PROGMEM = {
    one,
    two,
    // And so on...
};

您应该将const unsigned char array[]更改为const unsigned char

您好,我尝试使用您的解决方案,但它给了我以下错误:Mattplztestit:141:错误:变量“array”必须是const,才能通过“\uuu attribute\uuuu”((progmem))放入只读部分“variable”array必须是const,才能通过“_attribute__((progmem))”放入只读部分。定义二维数组(即数组数组)也是完全合法的。所有行的长度必须相同。对于错误消息,将
const unsigned char*array[]
更改为
const unsigned char*const[]
应该可以更正它。