|
本帖最后由 MrBattery 于 2019-3-12 18:09 编辑
请问下如果我想读取整个数组该怎么写,我本来的数组是unsigned int直接定义的,因为动态内存满了就换成了这个语句,但是我原来的调用语句无法调用我设定的数组了
期待大佬回复
#include <avr/pgmspace.h>
#include <IRremote.h>//红外发射模块接3引脚
IRsend irsend;
const unsigned int geli_on_30Hhigh[254] PROGMEM = {8900,4450,700,600,650,650, ........(省略).......};
const unsigned int geli_on_16Chigh[254] PROGMEM = {9000,4350,750,1600,650,650,........(省略)....... };
const unsigned int geli_off[254] PROGMEM = {9000,4350,750,600,700,600,700,1650,........(省略)....... };
void setup(){}
void loop()
{
irsend.sendRaw(geli_on_30Hhigh,254,38); //这里是发射语句,本来是可以发射的,但是现在无法发射红外信号
delay(500);
irsend.sendRaw(geli_on_16Chigh,254,38);
delay(500);
irsend.sendRaw(geli_off,254,38);
delay(500);
}
|
|