Skip to content

Commit 56dc45a

Browse files
committed
0.1.3 tinySHT2x
1 parent 9bc7e48 commit 56dc45a

File tree

6 files changed

+42
-15
lines changed

6 files changed

+42
-15
lines changed

libraries/tinySHT2x/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88

9+
## [0.1.3] - 2023-11-22
10+
- update readme.md
11+
- fix version number
12+
13+
914
## [0.1.2] - 2022-11-26
1015
- Add RP2040 support to build-CI.
1116
- Add CHANGELOG.md
1217
- update readme.md
1318
- minor edits
1419
- update unit test
1520

16-
1721
## [0.1.1] - 2021-12-29
1822
- update library.json
1923
- update readme.md

libraries/tinySHT2x/README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11

2-
[![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)
2+
[![Arduino CI](https://github.com/RobTillaart/tinySHT2x/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
33
[![Arduino-lint](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/RobTillaart/tinySHT2x/actions/workflows/arduino-lint.yml)
44
[![JSON check](https://github.com/RobTillaart/tinySHT2x/actions/workflows/jsoncheck.yml/badge.svg)](https://github.com/RobTillaart/tinySHT2x/actions/workflows/jsoncheck.yml)
5+
[![GitHub issues](https://img.shields.io/github/issues/RobTillaart/tinySHT2x.svg)](https://github.com/RobTillaart/tinySHT2x/issues)
6+
57
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/RobTillaart/tinySHT2x/blob/master/LICENSE)
68
[![GitHub release](https://img.shields.io/github/release/RobTillaart/tinySHT2x.svg?maxAge=3600)](https://github.com/RobTillaart/tinySHT2x/releases)
9+
[![PlatformIO Registry](https://badges.registry.platformio.org/packages/robtillaart/library/tinySHT2x.svg)](https://registry.platformio.org/libraries/robtillaart/tinySHT2x)
710

811

912
# tinySHT2x
@@ -13,29 +16,49 @@ Arduino library specific for AVR tiny processors.
1316

1417
## Description
1518

16-
Experimental ^2
19+
**Experimental**
20+
1721
Not portable, AVR only
1822

23+
#### Related
24+
1925
Based upon https://github.com/RobTillaart/SHT2x
2026

2127

2228
## Interface
2329

30+
```cpp
31+
#include "tinySHT2x.h"
32+
```
33+
2434
- see https://github.com/RobTillaart/SHT2x
2535

2636

2737
## Future
2838

29-
#### must
39+
#### Must
40+
3041
- test test test test (Viktor)
3142
- improve documentation
3243

33-
#### should
44+
#### Should
45+
46+
#### Could
3447

35-
#### could
3648
- Can a tiny have another Wire than Wire?
3749
- Check the status bit (temperature / humidity flag)
3850
- datasheet page 8, LSB bit 1 - bit 0 not used)
3951
- needed?
52+
- Move Wire parameter to constructor?
53+
54+
55+
#### Wont
56+
57+
58+
## Support
4059

60+
If you appreciate my libraries, you can support the development and maintenance.
61+
Improve the quality of the libraries by providing issues and Pull Requests, or
62+
donate through PayPal or GitHub sponsors.
4163

64+
Thank you,

libraries/tinySHT2x/library.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/tinySHT2x.git"
1717
},
18-
"version": "0.1.2",
18+
"version": "0.1.3",
1919
"license": "MIT",
2020
"frameworks": "arduino",
21-
"platforms": "*",
21+
"platforms": "avr",
2222
"headers": "tinySHT2x.h"
2323
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
name=tinySHT2x
2-
version=0.1.2
2+
version=0.1.3
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Arduino library for the SHT20, SHT21 and SHT25 temperature and humidity sensor. Optimized for AVR tiny.
66
paragraph=Supports SHT20 and SHT25 too.
77
category=Sensors
88
url=https://github.com/RobTillaart/tinySHT2x
9-
architectures=*
9+
architectures=avr
1010
includes=tinySHT2x.h
1111
depends=

libraries/tinySHT2x/tinySHT2x.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: tinytinySHT2x.cpp
33
// AUTHOR: Rob Tillaart, Viktor Balint
4-
// VERSION: 0.1.2
4+
// VERSION: 0.1.3
55
// DATE: 2021-09-27
66
// PURPOSE: Arduino library for the SHT2x temperature and humidity sensor optimized for AVR tiny
77
// URL: https://github.com/RobTillaart/tinytinySHT2x
@@ -92,7 +92,7 @@ bool tinySHT2x::readBytes(uint8_t n, uint8_t *val, uint8_t maxDuration)
9292
uint32_t start = millis();
9393
while (_wire->available() < n)
9494
{
95-
if (millis() - start > maxDuration)
95+
if (millis() - start > maxDuration)
9696
{
9797
return false;
9898
}

libraries/tinySHT2x/tinySHT2x.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: tinySHT2x.h
44
// AUTHOR: Rob Tillaart, Viktor Balint
5-
// VERSION: 0.1.1
5+
// VERSION: 0.1.3
66
// DATE: 2021-09-27
77
// PURPOSE: Arduino library for the SHT2x temperature and humidity sensor optimized for AVR tiny
88
// URL: https://github.com/RobTillaart/tinySHT2x
@@ -12,7 +12,7 @@
1212
#include "Arduino.h"
1313
#include "Wire.h"
1414

15-
#define TINY_SHT2x_LIB_VERSION (F("0.1.1"))
15+
#define TINY_SHT2x_LIB_VERSION (F("0.1.3"))
1616

1717
#define TINY_SHT2x_NO_VALUE -999
1818

@@ -34,5 +34,5 @@ class tinySHT2x
3434
};
3535

3636

37-
// -- END OF FILE --
37+
// -- END OF FILE --
3838

0 commit comments

Comments
 (0)