|
#include <STC15Fxxxx.h>
#include "intrins.h"
#include "delay.h" //延遲函數(shù)
#include "codetab.h" //字符串、中文、數(shù)字、字母函數(shù)
#include "LQ12864.h" //OLED驅(qū)動(dòng)函數(shù)
#include "dht11.h" //DHT11驅(qū)動(dòng)
#include "xianshi.h" //顯示函數(shù)
void main(void)
{
unsigned char i;
OLED_Init(); //OLED初始化
OLED_CLS(); //清屏
while(1)
{
for(i=0; i<4; i++) //通過(guò)點(diǎn)整顯示漢字 -- i表示字表數(shù)組的位置
{
OLED_P16x16Ch(i*16+24,0,i);
}
OLED_P8x16Str(0,2,"OLED Display"); //顯示字符串“OLED Display”
WENSHIDUXIANSHI(); //顯示溫濕度函數(shù)
Delayxms(1000);
} |
評(píng)分
-
查看全部評(píng)分
|