我正在尝试编写一个头文件来驱动 LED 矩阵,但我遇到了无法解决的语法错误
我已经在我认为有必要的地方添加了“;”并检查了https://www.nongnu.org/avr-libc/user-manual/pgmspace.html
#ifndef max7219_H_
#define max7219_H_
#include <io.h>
#include <pgmspace.h>
#include <delay.h>
#include <stdint.h>
#define SLAVE_SELECT PORTB &= ~( 1<<PB4 );
#define SLAVE_DESELECT PORTB |= ~( 1<<PB4 );
char characters[96][5] PROGMEM =
{
{
0b00000000,
0b00000000,
0b00000000,
0b00000000,
0b00000000
}
};
错误是:错误:max7219.h(15),#included from: p2.c: ';' 预期的
第 15 行是 char characters[96][5] PROGMEM = ...