File tree Expand file tree Collapse file tree 10 files changed +34
-8
lines changed
Expand file tree Collapse file tree 10 files changed +34
-8
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,6 @@ See async example for usage
158158- direct Fahrenheit formula
159159
160160
161-
162161## Operation
163162
164163See examples
Original file line number Diff line number Diff line change 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
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"
Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ uint32_t stop;
2424
2525SHT85 sht;
2626
27+
2728void setup ()
2829{
2930 Serial.begin (115200 );
@@ -47,8 +48,10 @@ void setup()
4748 Serial.println (" \n done..." );
4849}
4950
51+
5052void loop ()
5153{
5254}
5355
56+
5457// -- END OF FILE --
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ uint32_t stop;
2424
2525SHT85 sht;
2626
27+
2728void setup ()
2829{
2930 Serial.begin (115200 );
@@ -40,6 +41,7 @@ void setup()
4041 Serial.println ();
4142}
4243
44+
4345void loop ()
4446{
4547 start = micros ();
@@ -55,4 +57,5 @@ void loop()
5557 delay (100 );
5658}
5759
60+
5861// -- END OF FILE --
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ uint32_t last = 0;
2626
2727SHT85 sht;
2828
29+
2930void 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+
4648void loop ()
4749{
4850 start = micros ();
@@ -64,4 +66,5 @@ void loop()
6466 }
6567}
6668
69+
6770// -- END OF FILE --
Original file line number Diff line number Diff line change 33# Datatypes (KEYWORD1)
44SHT85 KEYWORD1
55
6+
67# Methods and Functions (KEYWORD2)
78begin KEYWORD2
89read KEYWORD2
910isConnected KEYWORD2
1011readStatus KEYWORD2
1112lastRead KEYWORD2
1213reset KEYWORD2
14+
1315setHeatTimeout KEYWORD2
1416heatOn KEYWORD2
1517heatOff KEYWORD2
1618isHeaterOn KEYWORD2
19+
1720getHumidity KEYWORD2
1821getTemperature KEYWORD2
22+
1923requestData KEYWORD2
2024dataReady KEYWORD2
2125readData KEYWORD2
2226
27+
2328# Instances (KEYWORD2)
2429
30+
2531# Constants (LITERAL1)
2632SHT_LIB_VERSION LITERAL1
2733SHT_STATUS_ALERT_PENDING LITERAL1
Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 11name =SHT85
2- version =0.1.1
2+ version =0.1.2
33author =Rob Tillaart <
[email protected] >
44maintainer =Rob Tillaart <
[email protected] >
55sentence =Arduino library for the SHT85 temperature and humidity sensor
66paragraph =Class for SHT85 Temperature Humidity Adafruit I2C
7- category =Sensor
7+ category =Sensors
88url =https://github.com/RobTillaart/SHT85
99architectures =*
1010includes =SHT85.h
Original file line number Diff line number Diff line change 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
3940uint32_t start, stop;
4041
42+
4143unittest_setup ()
4244{
4345}
4446
47+
4548unittest_teardown ()
4649{
4750}
4851
52+
4953unittest (test_begin)
5054{
5155 SHT85 sht;
@@ -65,6 +69,7 @@ unittest(test_begin)
6569 assertEqual (0 , sht.getHumidity ());
6670}
6771
72+
6873unittest (test_read)
6974{
7075 SHT85 sht;
@@ -94,6 +99,7 @@ unittest(test_read)
9499 assertEqual (expect, sht.getError ());
95100}
96101
102+
97103unittest (test_readStatus)
98104{
99105 SHT85 sht;
@@ -105,6 +111,7 @@ unittest(test_readStatus)
105111 assertEqual (expect, sht.getError ());
106112}
107113
114+
108115unittest (test_heater)
109116{
110117 SHT85 sht;
@@ -124,6 +131,7 @@ unittest(test_heater)
124131 assertEqual (expect, sht.getError ());
125132}
126133
134+
127135unittest (test_async)
128136{
129137 SHT85 sht;
@@ -151,6 +159,8 @@ unittest(test_async)
151159 assertEqual (expect, sht.getError ());
152160}
153161
162+
154163unittest_main ()
155164
156- // --------
165+
166+ // --------
You can’t perform that action at this time.
0 commit comments