标题: Proteus8.7仿真STM32+LCD12846(无字库版本)有问题 求帮助 [打印本页]

作者: 我一岁    时间: 2020-5-9 15:16
标题: Proteus8.7仿真STM32+LCD12846(无字库版本)有问题 求帮助
开始学习proteus仿真,完成了12864的仿真~供大家学习交流
仿真原理图如下(proteus仿真工程文件可到本帖附件中下载)


单片机源程序如下:
  1. #include "delay.h"
  2. #include "sys.h"
  3. #include "12864.h"
  4. #include "led.h"
  5. #include "usart.h"
  6. #include "exti.h"
  7. #include "timer.h"
  8. #include "bmp.h"
  9. #include "stm32f10x_tim.h"
  10. #include "stm32f10x_exti.h"
  11. #include "stm32f10x.h"
  12.         int i;
  13. int main(void)
  14. {               
  15.         Init_12864();       //初始化带字库12864液晶         ");
  16.                 i=5;
  17.         LCD_Send_Data(2,42,i);//42
  18.         LCD_P6x8Str(2,48,".");//48
  19.         LCD_Send_Data(2,54,6);//54
  20.         LCD_P6x8Str(2,0,"BMP180:");
  21.         LCD_P6x8Str(3,0,"MQ-2  :");
  22.         while(1)
  23.         {
  24.            long UT,UP;
  25.     IIC_Init();
  26.           IIC_Init1();
  27.                  UT = Get_BMP180UT();         
  28.                  UP = Get_BMP180UP();        
  29.           LCD_Send_Data(5,0,UP);//54
  30.           LCD_Send_Data(4,0,UT);//54
  31.   }
  32. }
复制代码

所有资料51hei提供下载:
仿真工程.rar (296.07 KB, 下载次数: 55)
Project_1.7z (413.49 KB, 下载次数: 53)







欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1