Skip to content

Commit 471b9c5

Browse files
committed
0.3.3 DHT12
1 parent ccdf651 commit 471b9c5

File tree

6 files changed

+75
-22
lines changed

6 files changed

+75
-22
lines changed

libraries/DHT12/.arduino-ci.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
platforms:
2+
rpipico:
3+
board: rp2040:rp2040:rpipico
4+
package: rp2040:rp2040
5+
gcc:
6+
features:
7+
defines:
8+
- ARDUINO_ARCH_RP2040
9+
warnings:
10+
flags:
11+
12+
packages:
13+
rp2040:rp2040:
14+
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
15+
116
compile:
217
# Choosing to run compilation tests on 2 different Arduino platforms
318
platforms:
@@ -7,5 +22,7 @@ compile:
722
# - leonardo
823
- m4
924
- esp32
10-
# - esp8266
11-
# - mega2560
25+
- esp8266
26+
# - mega2560
27+
- rpipico
28+

libraries/DHT12/CHANGELOG.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Change Log DHT12
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6+
and this project adheres to [Semantic Versioning](http://semver.org/).
7+
8+
9+
## [0.3.3] - 2022-11-01
10+
- add changelog.md
11+
- add rp2040 to build-CI
12+
13+
14+
## [0.3.2] - 2021-12-16
15+
- update library.json
16+
- update license
17+
- add isConnected()
18+
19+
## [0.3.1] - 2021-10-25
20+
- add lastRead()
21+
- update Arduino-CI
22+
- add badges
23+
24+
## [0.3.0] - 2020-12-19
25+
- add Arduino-CI + unit test
26+
- temperature and humidity made private
27+
28+
----
29+
30+
## [0.2.1] - 2020-06-07
31+
- fix library.json
32+
33+
## [0.2.0] - 2020-04-11
34+
- explicit constructors, select other Wire interface,
35+
- #pragma once
36+
37+
----
38+
39+
## [0.1.2] - 2018-09-02
40+
- fix negative temperature DHT12 - issue #111
41+
42+
## [0.1.1] - 2017-12-19
43+
- added ESP8266 - issue #86
44+
- Verified by Viktor Balint
45+
46+
## [0.1.0] - 2017-12-11
47+
- initial version
48+

libraries/DHT12/DHT12.cpp

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
11
//
22
// FILE: DHT12.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.3.2
4+
// VERSION: 0.3.3
55
// PURPOSE: I2C library for DHT12 for Arduino.
66
//
7-
// HISTORY:
8-
// 0.1.0 2017-12-11 initial version
9-
// 0.1.1 2017-12-19 added ESP8266 - issue #86
10-
// Verified by Viktor Balint
11-
// 0.1.2 2018-09-02 fix negative temperature DHT12 - issue #111
12-
// 0.2.0 2020-04-11 explicit constructors, select other Wire interface,
13-
// #pragma once
14-
// 0.2.1 2020-06-07 fix library.json
15-
// 0.3.0 2020-12-19 add Arduino-CI + unit test
16-
// temperature and humidity made private
17-
// 0.3.1 2021-10-25 add lastRead, update Arduino-CI, badges
18-
// 0.3.2 2021-12-16 update library.json, license
19-
// add isConnected()
7+
// HISTORY: see changelog.md
208

219

2210
#include "DHT12.h"

libraries/DHT12/DHT12.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// FILE: DHT12.h
44
// AUTHOR: Rob Tillaart
55
// PURPOSE: DHT_I2C library for Arduino .
6-
// VERSION: 0.3.2
6+
// VERSION: 0.3.3
77
// HISTORY: See DHT12.cpp
88
// URL: https://github.com/RobTillaart/DHT12
99
//
@@ -12,7 +12,7 @@
1212
#include "Arduino.h"
1313
#include "Wire.h"
1414

15-
#define DHT12_LIB_VERSION (F("0.3.2"))
15+
#define DHT12_LIB_VERSION (F("0.3.3"))
1616

1717
#define DHT12_OK 0
1818
#define DHT12_ERROR_CHECKSUM -10
@@ -23,7 +23,7 @@
2323
class DHT12
2424
{
2525
public:
26-
DHT12(TwoWire *wire); // to be tested explicitly
26+
DHT12(TwoWire *wire); // to be tested explicitly
2727

2828
#if defined(ESP8266) || defined(ESP32)
2929
bool begin(const uint8_t dataPin, const uint8_t clockPin);
@@ -36,7 +36,7 @@ class DHT12
3636
float getHumidity() { return _humidity + _humOffset; };
3737
float getTemperature() { return _temperature + _tempOffset; };
3838

39-
// allows 1st order calibration
39+
// allows 1st order calibration
4040
void setHumOffset(float offset) { _humOffset = offset; };
4141
void setTempOffset(float offset) { _tempOffset = offset; };
4242
float getHumOffset() { return _humOffset; };

libraries/DHT12/library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/DHT12.git"
1717
},
18-
"version": "0.3.2",
18+
"version": "0.3.3",
1919
"license": "MIT",
2020
"frameworks": "arduino",
2121
"platforms": "*",

libraries/DHT12/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DHT12
2-
version=0.3.2
2+
version=0.3.3
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Arduino library for I2C DHT12 temperature and humidity sensor.

0 commit comments

Comments
 (0)