mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.3.3 SHT85
This commit is contained in:
parent
dd00c5b611
commit
b18b0873a8
@ -1,11 +1,27 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_ARCH_RP2040
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
- uno
|
||||
- due
|
||||
- zero
|
||||
- leonardo
|
||||
# - due
|
||||
# - zero
|
||||
# - leonardo
|
||||
- m4
|
||||
- esp32
|
||||
- esp8266
|
||||
- mega2560
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
50
libraries/SHT85/CHANGELOG.md
Normal file
50
libraries/SHT85/CHANGELOG.md
Normal file
@ -0,0 +1,50 @@
|
||||
# Change Log SHT85
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.3.3] - 2022-11-24
|
||||
- Add RP2040 support to build-CI.
|
||||
- Add CHANGELOG.md
|
||||
|
||||
|
||||
## [0.3.2] - 2022-01-17
|
||||
- fix #8 add SHT_DEFAULT_ADDRESS + 2x begin()
|
||||
|
||||
## [0.3.1] - 2021-12-28
|
||||
- update library.json
|
||||
- update readme.md
|
||||
- update license
|
||||
- minor edits
|
||||
|
||||
## [0.3.0] - 2021-10-20
|
||||
- Fix #6 image in documentation,
|
||||
- pdate build-CI
|
||||
|
||||
----
|
||||
|
||||
## [0.2.0] - 2021-08-24
|
||||
- split off base class
|
||||
- create derived classes SHT85, 30, 31, 35
|
||||
|
||||
----
|
||||
|
||||
## [0.1.4] - 2021-08-24
|
||||
- prevent heater to switch on too fast.
|
||||
- update readme
|
||||
|
||||
## [0.1.3] - 2021-08-06
|
||||
- expose raw data from sensor
|
||||
|
||||
## [0.1.2] - 2021-05-27
|
||||
- fix Arduino-lint
|
||||
|
||||
## [0.1.1] - 2021-03-13
|
||||
- initial release
|
||||
|
||||
## [0.1.0] - 2021-02-10
|
||||
- initial version
|
||||
|
@ -11,6 +11,8 @@
|
||||
Arduino library for the SHT85 temperature and humidity sensor.
|
||||
|
||||
Based upon the SHT31 library - https://github.com/RobTillaart/SHT31
|
||||
however this one will be leading in the future as it implements classes for the following SHT sensors: **SHT30, SHT31 and SHT35.**
|
||||
|
||||
|
||||
**Warning:** to keep self-heating below 0.1°C, the SHT85 sensor should
|
||||
not be used for more than 10% of the time.
|
||||
@ -197,15 +199,21 @@ See examples.
|
||||
- improve error handling / status. (all code paths)
|
||||
- add offsets for temperature and humidity.
|
||||
- like other sensors
|
||||
- move code from .h to .cpp
|
||||
|
||||
|
||||
#### could
|
||||
|
||||
- investigate command ART (auto sampling at 4 Hz)
|
||||
- investigate command BREAK (stop auto sampling)
|
||||
- merge with other SHT sensors if possible
|
||||
- separate release notes.
|
||||
|
||||
|
||||
#### won't
|
||||
|
||||
- rename the library? to SHT ? or sensirion.h ?
|
||||
- not on short term
|
||||
- create a SHT85 simulator
|
||||
- I2C slave sketch with e.g. a DHT22 sensor/
|
||||
- not within this library.
|
||||
|
@ -1,27 +1,12 @@
|
||||
//
|
||||
// FILE: SHT85.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.2
|
||||
// VERSION: 0.3.3
|
||||
// DATE: 2021-02-10
|
||||
// PURPOSE: Arduino library for the SHT85 temperature and humidity sensor
|
||||
// https://nl.rs-online.com/web/p/temperature-humidity-sensor-ics/1826530
|
||||
// URL: https://github.com/RobTillaart/SHT85
|
||||
//
|
||||
|
||||
// HISTORY:
|
||||
// 0.1.0 2021-02-10 initial version
|
||||
// 0.1.1 2021-03-13 initial release
|
||||
// 0.1.2 2021-05-27 fix Arduino-lint
|
||||
// 0.1.3 2021-08-06 expose raw data from sensor
|
||||
// 0.1.4 2021-08-24 prevent heater to switch on too fast.
|
||||
// update readme
|
||||
// 0.2.0 2021-08-24 split off base class
|
||||
// create derived classes SHT85, 30, 31, 35
|
||||
//
|
||||
// 0.3.0 2021-10-20 Fix #6 image in documentation,
|
||||
// update build-CI
|
||||
// 0.3.1 2021-12-28 update library.json, readme, license, minor edits
|
||||
// 0.3.2 2022-01-17 fix #8 add SHT_DEFAULT_ADDRESS + 2x begin()
|
||||
|
||||
|
||||
#include "SHT85.h"
|
||||
|
@ -2,7 +2,7 @@
|
||||
//
|
||||
// FILE: SHT85.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.2
|
||||
// VERSION: 0.3.3
|
||||
// DATE: 2021-02-10
|
||||
// PURPOSE: Arduino library for the SHT85 temperature and humidity sensor
|
||||
// https://nl.rs-online.com/web/p/temperature-humidity-sensor-ics/1826530
|
||||
@ -23,7 +23,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define SHT_LIB_VERSION (F("0.3.2"))
|
||||
#define SHT_LIB_VERSION (F("0.3.3"))
|
||||
#define SHT85_LIB_VERSION SHT_LIB_VERSION
|
||||
|
||||
#ifndef SHT_DEFAULT_ADDRESS
|
||||
@ -74,7 +74,7 @@ public:
|
||||
// check sensor is reachable over I2C
|
||||
bool isConnected();
|
||||
|
||||
// details see datasheet; summary in SHT31.cpp file
|
||||
// details see datasheet; summary in SHT85.cpp file
|
||||
uint16_t readStatus();
|
||||
|
||||
// lastRead is in milliSeconds since start
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/SHT85"
|
||||
},
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=SHT85
|
||||
version=0.3.2
|
||||
version=0.3.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for the SHT85, SHT30, SHT31, SHT35 Senserion temperature and humidity sensor
|
||||
|
Loading…
Reference in New Issue
Block a user