代码搜索结果
找到约 330 项符合
Humidity 的代码
sht.c
//----------------------------------------------------------------------------------
//
// Sensirion SHTxx Humidity Sensor Library
//
// Library for using the SHT1x humidity and temperature
// se
main.lst
C51 COMPILER V8.02 MAIN 08/16/2008 19:24:19 PAGE 1
C51 COMPILER V8.02, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN ma
i2c.c
#define DATA P1_1
#define SCK P1_0
#define ACK 1
#define noACK 0
#define MEASURE_TEMP 0x03 //测量温度命令
#define MEASURE_HUMI 0x05 //测量湿度命令
//读温湿度数据
chars_measure(unsigned char *p_value,unsigned
aci78.cpp
#include
#include
#include
#include "aci78.h"
#include "global.h"
#include "genfile.h"
/**
The constructor defines the variables and fills them nought except that param
sht11.c
#include
enum {TEMP,HUMI};
#define S_DATA_OUT P6DIR |= BIT6 //P6.5 OUT
#define S_DATA_IN P6DIR &=~BIT6 //P6.5 IN
#define S_DATA P6IN & BIT6 //P6.5 DATA
#define S_DATA_LOW P6OUT &
arm_sht.h
/***************************************************
2007/2/10
Liu Guobing
****************************************************/
// sample program that shows how to use SHT11 functions
// 1. c
log_table.c
char log_table[][40]=
{
{"there is an cmd connect request"},//1
{"cmd connect request confirmed"},//2
{"cmd deconnect request"},//3
{"cmd deconnect confirm"},//4
{"get temperature request"},//5
test_hum.c
#include "msched.h" // start()
#include "printf.h" // printf
#include "dev.h" // device functions
#include "clock.h" // mos_mdelay
#include "msp-humidity.h" // ioctl arguments
void start(void)
{
main.c
#include "includes.h"
//T1、T2定时器重装值,clk/1024
#define T0OVF_RELOAD 0xb7 //定时10ms,实际值10ms
#define T1OVF_RELOAD 0xE3E0 //定时1000ms,实际值1000.00ms
#define T2OVF_RELOAD 0x13 //定时33ms, 实际值32.917ms
#
fre89s51.lst
C51 COMPILER V7.20 FRE89S51 01/12/2008 19:38:34 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE FRE89S51
OBJECT MODULE PLACED I