int main(void)
{
delay_init(); //延时函数初始化
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); //设置NVIC中断分组2:2位抢占优先级,2位响应优先级
LED_Init(); //LED端口初始化
OLED_Init(); //初始化OLED
OLED_Show_FontN(0,56,2);
OLED_Show_FontN(8,56,0);
OLED_Show_FontN(16,56,1);
OLED_Show_FontN(24,56,7);
OLED_Show();
while(1)
{
delay_ms(500);
LED0=!LED0;
}
}
1