登录
首页 » c » source code for DHT22 Digital temperature and humidity sensor.

source code for DHT22 Digital temperature and humidity sensor.

于 2022-05-27 发布 文件大小:2.62 kB
0 93
下载积分: 2 下载次数: 1

代码说明:

此代码属于DHT22数字湿度和温度传感器。用一根电线就可以了接口.库是为stm32编写的,但可以用于任何微控制器。为了使用此传感器,我们使用了1个GPIO引脚和1个16位计时器。第一步是:在DhtConfig和DhtADir函数中配置GPIO和计时器。然后利用DhtReading函数,可以读出16位串行温度和16位串行湿度以及8位校验和。利用TemperatureCalculate函数,读出的数据可以转换为温度和湿度的浮动值。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • AVR_HMC5883L-GY273
    GY-273三轴电子指南针资料,AVR单片机。(GY-273 three-axis electronic compass data, AVR microcontroller.)
    2016-06-18 20:05:45下载
    积分:1
  • WritePathToXml
    使用C#进行xml的读写。根据输入的路径,搜索路径下的所有文件和子文件夹,将这些文件和子文件夹的路径保存到xml中。(Use C # to read and write xml. According to the input path, all files and subfolders under the path are searched, and the paths of these files and subfolders are saved into xml.)
    2020-06-18 13:20:02下载
    积分:1
  • MultControl
    这是一个多列的树/列表控制类库(87KB),对大家学习很有用的(This is a multi-column tree/list control class library (87KB), for all of us to learn useful)
    2009-06-06 08:51:52下载
    积分:1
  • LM6029datasheet
    这是LM6029液晶显示的源程序和资料,程序调试过,可以用。(This is datasheet and C source of LCD LM6029,it can be used correctlly.)
    2010-12-26 12:16:57下载
    积分:1
  • Atmega8 单片机的 CVAVR 代码
    #包括;
    2022-04-12 19:02:56下载
    积分:1
  • PWM输出实验
    通过定时器控制pwm输出,进而控制电机舵机的转动。(The output of PWM is controlled by a timer, and then the rotation of the motor steering gear is controlled.)
    2020-06-18 17:20:02下载
    积分:1
  • mips-code-to-machine-code
    汇编代码转成机器码——对输入有几点要求:指令是小写;一行只能有一条指令;每行开头不能有空格,必须一上来就是操作符,后面可以有空格;立即数只处理十进制数;输入-1代表程序结束(Turn assembly code into machine code- there are several points of entry requirements: command is lowercase line can only have one instruction beginning of each line can not have spaces, the operator must be up against the back can have spaces immediate treatment only decimal number -1 means the end of the input program)
    2014-07-29 13:42:12下载
    积分:1
  • _Heikkila-a-Silven
    张正友标定法中计算内参的方法,经典原文资料(calculate Intrinsics zhang s method)
    2014-12-04 10:38:34下载
    积分:1
  • Financial-management-system
    用visual studio开发的基于sql server2005的财务管理系统。财务凭证管理系统主要由【系统管理】、【凭证管理】、【科目信息】、【账目查询】和【报表】等模块组成(Development with visual studio, sql server2005-based financial management system. Financial certificate management system mainly consists of the [System Management], [Certificate Management] [subject information], [accounts query】 【Report】 modules)
    2012-07-05 14:52:38下载
    积分:1
  • 讲述如何使用C#的多媒体应用开发小型的图片浏览器,是十分形象的初学者实例...
    讲述如何使用C#的多媒体应用开发小型的图片浏览器,是十分形象的初学者实例-on how to use C# multimedia application development small picture browser, it is very vivid examples beginners
    2022-10-10 14:35:02下载
    积分:1
  • 696518资源总数
  • 105895会员总数
  • 18今日下载