标题: OLED的STC15温度显示 [打印本页]

作者: feixue2007    时间: 2018-6-29 20:22
标题: OLED的STC15温度显示

#include <STC15Fxxxx.h>
#include "intrins.h"
#include "delay.h"                       //延迟函数
#include "codetab.h"                     //字符串、中文、数字、字母函数
#include "LQ12864.h"                     //OLED驱动函数
#include "dht11.h"                       //DHT11驱动
#include "xianshi.h"                     //显示函数

void main(void)
{
        unsigned char i;
        OLED_Init();                            //OLED初始化
        OLED_CLS();                             //清屏
        while(1)
        {
                for(i=0; i<4; i++)                   //通过点整显示汉字 -- i表示字表数组的位置
                {
                  OLED_P16x16Ch(i*16+24,0,i);
                }
                OLED_P8x16Str(0,2,"OLED Display");   //显示字符串“OLED Display”
                WENSHIDUXIANSHI();                   //显示温湿度函数
    Delayxms(1000);       
               
        }

OLED-STC15xx系列,dht11温湿度检测.rar

1.34 MB, 下载次数: 44, 下载积分: 黑币 -5






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