Update to the DHT22 sensor library to allow all the sensors supported by the underlying Adafruit DHT Libraries: DHT11, DHT12, DHT21, DHT22, AM2301
*In order to use this library in MATLAB, the Adafruit DHT library must also be installed in the Arduino
1. Find the location of the Arduino IDE by typing in the command window
arduinoio.IDERoot
eg. >> 'C:\ProgramData\MATLAB\SupportPackages\R2021b\aIDE'
2. Navigate to this folder and launch Arduino
3. Go to Tools->Manage Libraries. Search for and install 'DHT sensor library' by Adafruit
引用格式
Eric Prandovsky (2024). DHT Add-On Library for Arduino (https://www.mathworks.com/matlabcentral/fileexchange/102494-dht-add-on-library-for-arduino), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2021b
兼容任何版本
平台兼容性
Windows macOS Linux标签
致谢
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!DHTxx Add-On Library for Arduino
DHTxx Add-On Library for Arduino/+arduinoioaddons/+Adafruit
版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |