Skip to content

Commit eb5b781

Browse files
committed
0.1.2 SHT85
1 parent 85fb107 commit eb5b781

File tree

10 files changed

+34
-8
lines changed

10 files changed

+34
-8
lines changed

libraries/SHT85/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ See async example for usage
158158
- direct Fahrenheit formula
159159

160160

161-
162161
## Operation
163162

164163
See examples

libraries/SHT85/SHT85.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: SHT85.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.1.1
4+
// VERSION: 0.1.2
55
// DATE: 2021-02-10
66
// PURPOSE: Arduino library for the SHT85 temperature and humidity sensor
77
// https://nl.rs-online.com/web/p/temperature-humidity-sensor-ics/1826530
@@ -11,6 +11,7 @@
1111
// HISTORY:
1212
// 0.1.0 2021-02-10 initial version
1313
// 0.1.1 2021-03-13 initial release
14+
// 0.1.2 2021-05-27 fix arduino-lint
1415

1516

1617
#include "SHT85.h"

libraries/SHT85/SHT85.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: SHT85.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.1.1
5+
// VERSION: 0.1.2
66
// DATE: 2021-02-10
77
// PURPOSE: Arduino library for the SHT85 temperature and humidity sensor
88
// https://nl.rs-online.com/web/p/temperature-humidity-sensor-ics/1826530
@@ -25,7 +25,7 @@
2525
#include "Wire.h"
2626

2727

28-
#define SHT85_LIB_VERSION "0.1.1"
28+
#define SHT85_LIB_VERSION (F("0.1.2"))
2929

3030

3131
// fields readStatus

libraries/SHT85/examples/SHT85_I2C_speed/SHT85_I2C_speed.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ uint32_t stop;
2424

2525
SHT85 sht;
2626

27+
2728
void setup()
2829
{
2930
Serial.begin(115200);
@@ -47,8 +48,10 @@ void setup()
4748
Serial.println("\ndone...");
4849
}
4950

51+
5052
void loop()
5153
{
5254
}
5355

56+
5457
// -- END OF FILE --

libraries/SHT85/examples/SHT85_demo/SHT85_demo.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ uint32_t stop;
2424

2525
SHT85 sht;
2626

27+
2728
void setup()
2829
{
2930
Serial.begin(115200);
@@ -40,6 +41,7 @@ void setup()
4041
Serial.println();
4142
}
4243

44+
4345
void loop()
4446
{
4547
start = micros();
@@ -55,4 +57,5 @@ void loop()
5557
delay(100);
5658
}
5759

60+
5861
// -- END OF FILE --

libraries/SHT85/examples/SHT85_demo_plotter/SHT85_demo_plotter.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ uint32_t last = 0;
2626

2727
SHT85 sht;
2828

29+
2930
void setup()
3031
{
3132
Serial.begin(115200);
@@ -43,6 +44,7 @@ void setup()
4344
Serial.println("count\t time\t temp\t hum");
4445
}
4546

47+
4648
void loop()
4749
{
4850
start = micros();
@@ -64,4 +66,5 @@ void loop()
6466
}
6567
}
6668

69+
6770
// -- END OF FILE --

libraries/SHT85/keywords.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,31 @@
33
# Datatypes (KEYWORD1)
44
SHT85 KEYWORD1
55

6+
67
# Methods and Functions (KEYWORD2)
78
begin KEYWORD2
89
read KEYWORD2
910
isConnected KEYWORD2
1011
readStatus KEYWORD2
1112
lastRead KEYWORD2
1213
reset KEYWORD2
14+
1315
setHeatTimeout KEYWORD2
1416
heatOn KEYWORD2
1517
heatOff KEYWORD2
1618
isHeaterOn KEYWORD2
19+
1720
getHumidity KEYWORD2
1821
getTemperature KEYWORD2
22+
1923
requestData KEYWORD2
2024
dataReady KEYWORD2
2125
readData KEYWORD2
2226

27+
2328
# Instances (KEYWORD2)
2429

30+
2531
# Constants (LITERAL1)
2632
SHT_LIB_VERSION LITERAL1
2733
SHT_STATUS_ALERT_PENDING LITERAL1

libraries/SHT85/library.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"type": "git",
1616
"url": "https://github.com/RobTillaart/SHT85"
1717
},
18-
"version": "0.1.1",
18+
"version": "0.1.2",
19+
"license": "MIT",
1920
"frameworks": "arduino",
2021
"platforms": "*"
2122
}

libraries/SHT85/library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name=SHT85
2-
version=0.1.1
2+
version=0.1.2
33
author=Rob Tillaart <[email protected]>
44
maintainer=Rob Tillaart <[email protected]>
55
sentence=Arduino library for the SHT85 temperature and humidity sensor
66
paragraph=Class for SHT85 Temperature Humidity Adafruit I2C
7-
category=Sensor
7+
category=Sensors
88
url=https://github.com/RobTillaart/SHT85
99
architectures=*
1010
includes=SHT85.h

libraries/SHT85/test/unit_test_001.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
It appears that Wire.write does not fail without sensor...
3030
*/
3131

32+
3233
#include <ArduinoUnitTests.h>
3334

3435
#include "Arduino.h"
@@ -38,14 +39,17 @@ int expect; // TODO needed as there seems a problem with 8 bit comparisons (cha
3839

3940
uint32_t start, stop;
4041

42+
4143
unittest_setup()
4244
{
4345
}
4446

47+
4548
unittest_teardown()
4649
{
4750
}
4851

52+
4953
unittest(test_begin)
5054
{
5155
SHT85 sht;
@@ -65,6 +69,7 @@ unittest(test_begin)
6569
assertEqual(0, sht.getHumidity());
6670
}
6771

72+
6873
unittest(test_read)
6974
{
7075
SHT85 sht;
@@ -94,6 +99,7 @@ unittest(test_read)
9499
assertEqual(expect, sht.getError());
95100
}
96101

102+
97103
unittest(test_readStatus)
98104
{
99105
SHT85 sht;
@@ -105,6 +111,7 @@ unittest(test_readStatus)
105111
assertEqual(expect, sht.getError());
106112
}
107113

114+
108115
unittest(test_heater)
109116
{
110117
SHT85 sht;
@@ -124,6 +131,7 @@ unittest(test_heater)
124131
assertEqual(expect, sht.getError());
125132
}
126133

134+
127135
unittest(test_async)
128136
{
129137
SHT85 sht;
@@ -151,6 +159,8 @@ unittest(test_async)
151159
assertEqual(expect, sht.getError());
152160
}
153161

162+
154163
unittest_main()
155164

156-
// --------
165+
166+
// --------

0 commit comments

Comments
 (0)