diff --git a/libraries/tinySHT2x/CHANGELOG.md b/libraries/tinySHT2x/CHANGELOG.md index 60834dffb..65caf11f5 100644 --- a/libraries/tinySHT2x/CHANGELOG.md +++ b/libraries/tinySHT2x/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.1.3] - 2023-11-22 +- update readme.md +- fix version number + + ## [0.1.2] - 2022-11-26 - Add RP2040 support to build-CI. - Add CHANGELOG.md @@ -13,7 +18,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - minor edits - update unit test - ## [0.1.1] - 2021-12-29 - update library.json - update readme.md diff --git a/libraries/tinySHT2x/README.md b/libraries/tinySHT2x/README.md index 498172702..b4ee932df 100644 --- a/libraries/tinySHT2x/README.md +++ b/libraries/tinySHT2x/README.md @@ -1,9 +1,12 @@ -[![Arduino CI](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino_test_runner.yml/badge.svg)](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino_test_runner.yml) +[![Arduino CI](https://github.com/RobTillaart/tinySHT2x/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci) [![Arduino-lint](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino-lint.yml) [![JSON check](https://github.com/RobTillaart/tinySHT2x/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/tinySHT2x/actions/workflows/jsoncheck.yml) +[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/tinySHT2x.svg)](https://github.com/RobTillaart/tinySHT2x/issues) + [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/tinySHT2x/blob/master/LICENSE) [![GitHub release](https://img.shields.io/github/release/RobTillaart/tinySHT2x.svg?maxAge=3600)](https://github.com/RobTillaart/tinySHT2x/releases) +[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/tinySHT2x.svg)](https://registry.platformio.org/libraries/robtillaart/tinySHT2x) # tinySHT2x @@ -13,29 +16,49 @@ Arduino library specific for AVR tiny processors. ## Description -Experimental ^2 +**Experimental** + Not portable, AVR only +#### Related + Based upon https://github.com/RobTillaart/SHT2x ## Interface +```cpp +#include "tinySHT2x.h" +``` + - see https://github.com/RobTillaart/SHT2x ## Future -#### must +#### Must + - test test test test (Viktor) - improve documentation -#### should +#### Should + +#### Could -#### could - Can a tiny have another Wire than Wire? - Check the status bit (temperature / humidity flag) - datasheet page 8, LSB bit 1 - bit 0 not used) - needed? +- Move Wire parameter to constructor? + + +#### Wont + + +## Support +If you appreciate my libraries, you can support the development and maintenance. +Improve the quality of the libraries by providing issues and Pull Requests, or +donate through PayPal or GitHub sponsors. +Thank you, diff --git a/libraries/tinySHT2x/library.json b/libraries/tinySHT2x/library.json index 480f1d0bd..e5c1559f2 100644 --- a/libraries/tinySHT2x/library.json +++ b/libraries/tinySHT2x/library.json @@ -15,9 +15,9 @@ "type": "git", "url": "https://github.com/RobTillaart/tinySHT2x.git" }, - "version": "0.1.2", + "version": "0.1.3", "license": "MIT", "frameworks": "arduino", - "platforms": "*", + "platforms": "avr", "headers": "tinySHT2x.h" } diff --git a/libraries/tinySHT2x/library.properties b/libraries/tinySHT2x/library.properties index 7fc5870a0..59a32c5d5 100644 --- a/libraries/tinySHT2x/library.properties +++ b/libraries/tinySHT2x/library.properties @@ -1,11 +1,11 @@ name=tinySHT2x -version=0.1.2 +version=0.1.3 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for the SHT20, SHT21 and SHT25 temperature and humidity sensor. Optimized for AVR tiny. paragraph=Supports SHT20 and SHT25 too. category=Sensors url=https://github.com/RobTillaart/tinySHT2x -architectures=* +architectures=avr includes=tinySHT2x.h depends= \ No newline at end of file diff --git a/libraries/tinySHT2x/tinySHT2x.cpp b/libraries/tinySHT2x/tinySHT2x.cpp index 68d188b37..85a3a3274 100644 --- a/libraries/tinySHT2x/tinySHT2x.cpp +++ b/libraries/tinySHT2x/tinySHT2x.cpp @@ -1,7 +1,7 @@ // // FILE: tinytinySHT2x.cpp // AUTHOR: Rob Tillaart, Viktor Balint -// VERSION: 0.1.2 +// VERSION: 0.1.3 // DATE: 2021-09-27 // PURPOSE: Arduino library for the SHT2x temperature and humidity sensor optimized for AVR tiny // URL: https://github.com/RobTillaart/tinytinySHT2x @@ -92,7 +92,7 @@ bool tinySHT2x::readBytes(uint8_t n, uint8_t *val, uint8_t maxDuration) uint32_t start = millis(); while (_wire->available() < n) { - if (millis() - start > maxDuration) + if (millis() - start > maxDuration) { return false; } diff --git a/libraries/tinySHT2x/tinySHT2x.h b/libraries/tinySHT2x/tinySHT2x.h index 6f147b395..c72cb54f7 100644 --- a/libraries/tinySHT2x/tinySHT2x.h +++ b/libraries/tinySHT2x/tinySHT2x.h @@ -2,7 +2,7 @@ // // FILE: tinySHT2x.h // AUTHOR: Rob Tillaart, Viktor Balint -// VERSION: 0.1.1 +// VERSION: 0.1.3 // DATE: 2021-09-27 // PURPOSE: Arduino library for the SHT2x temperature and humidity sensor optimized for AVR tiny // URL: https://github.com/RobTillaart/tinySHT2x @@ -12,7 +12,7 @@ #include "Arduino.h" #include "Wire.h" -#define TINY_SHT2x_LIB_VERSION (F("0.1.1")) +#define TINY_SHT2x_LIB_VERSION (F("0.1.3")) #define TINY_SHT2x_NO_VALUE -999 @@ -34,5 +34,5 @@ class tinySHT2x }; -// -- END OF FILE -- +// -- END OF FILE --