如下我要改变数组里面的值,通过改变变量来实现,采用如下方式可否
const byte DD1=0x7E;
const byte DD2=0x7E;
const byte DD3=0x7E;
const byte DD4=0x7E;
const byte DD5=0x7E;
const byte DD6=0x7E;
const byte DD7=0x7E;
const byte DD8=0x7E;
const byte DD9=0x7E;
const byte DD10=0x7E;
const byte mybuf[] = {DD1,DD2,DD3,DD4,DD5,DD6,DD7,DD8,DD9,DD10};
Serial.write(mybuf,sizeof(mybuf) / sizeof(mybuf[0]));
我输出的是不是: 7E 7E7E 7E7E 7E7E 7E 7E 7E |