mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-09-19 16:46:11 -04:00
0.1.3 tinySHT2x
This commit is contained in:
parent
9bc7e48e6c
commit
56dc45adf1
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
name=tinySHT2x
|
||||
version=0.1.2
|
||||
version=0.1.3
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
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=
|
@ -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;
|
||||
}
|
||||
|
@ -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 @@ private:
|
||||
};
|
||||
|
||||
|
||||
// -- END OF FILE --
|
||||
// -- END OF FILE --
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user