找回密码
 注册

QQ登录

只需一步,快速开始

搜索

STM32+LCD12846(无字库版本)proteus仿真+源码

[复制链接]
路漫漫 发表于 2020-5-21 01:28:27 | 显示全部楼层 |阅读模式
开始学习proteus仿真,完成了12864的仿真~供大家学习交流
仿真原理图如下(proteus仿真工程文件可到本帖附件中下载)
proreus仿真工程文件.rar (296.07 KB, 售价: 1 E币)
stm32 lcd12846源码.7z (413.49 KB, 售价: 1 E币)
1.png
部分代码:
  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. }
复制代码


您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|ELEOK |网站地图

GMT+8, 2024-3-29 07:47

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表