答案对人有帮助,有参考价值0 delay_init(u8 SYSCLK){ SysTick_CLKSourceConfig(SysTick_CLKSource_HCLK...
u8 handBuff;int main(void){ Usart1_Init(72,4800);LED_Setup();USART1_Tx_DMA_Init(SendBuff)...
(TIM2,TIM_IT_Update|TIM_IT_CC2,ENABLE);//允许更新中断 ,允许CC2IE捕获中断 TIM_Cmd(TIM2,ENABLE ); //使能定时器2 } u8 TIM5CH1_CAPTURE_STA=0; //输入捕获状态 u16 TIM5CH1_CAPTURE_VAL; //输入捕获值 //定时器2中断服务程序 void TIM2_IRQHandler(void) { if((TIM5CH1_CAPTURE_STA&0X80...
127 (56~63)行 //数组每个bit存储OLED每个像素点的颜色值(1-亮(白色),0-灭(黑色)) //每个数组元素表示1列8个像素点,一共128列 static unsigned char OLED_buffer[1024] = { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,...