|
12黑币
程序见附件,求大神帮忙看看哪里出错了,LCD没法正常显示
- #include "delay.h"
- #include "stm32f10x.h"
- #include "lcd1602.h"
- #include "sys.h"
- #include "usart.h"
- #include "ds18b20.h"
- #include "TIM.h"
- int main()
-
- {
-
-
- delay_init(); //延时函数初始化
- NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);//设置中断优先级分组为组2
- uart_init(115200); //串口初始化为 115200
- LCD1602_Init(); //初始化LCD
- DS18B20_Init();
- TIM3_init();
-
-
-
- LCD1602_ShowStr(1,0,"Temp:",16);
- LCD1602_ShowStr(1,1,"PF: ",6);
-
-
-
- while(1)
- {
- DS18B20_Get_Temp();
- DS18B20_disp();
- TIM3_disp();
-
- }
-
-
- }
-
复制代码
|
|