File tree 3 files changed +16
-6
lines changed
3 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 10
10
test :
11
11
runs-on : ubuntu-latest
12
12
strategy :
13
+ fail-fast : false
13
14
matrix :
14
15
test :
15
16
- name : dht22-uno
Original file line number Diff line number Diff line change @@ -5,9 +5,21 @@ author: 'Uri Shaked'
5
5
steps :
6
6
- wait-serial : ' DHT22 test!'
7
7
# Wait for first reading
8
- - delay : 2000ms
8
+ - delay : 500ms
9
9
# Check exact temperature and humidity values
10
10
- wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
11
11
# Wait for second reading to confirm consistency
12
- - delay : 2000ms
12
+ - delay : 500ms
13
13
- wait-serial : ' Humidity: 45.80% Temperature: 23.50°C'
14
+ # Set new values
15
+ - set-control :
16
+ part-id : dht
17
+ control : temperature
18
+ value : 21.5
19
+ - set-control :
20
+ part-id : dht
21
+ control : humidity
22
+ value : 66.9
23
+ - delay : 500ms
24
+ # Check new values
25
+ - wait-serial : ' Humidity: 66.90% Temperature: 21.50°C'
Original file line number Diff line number Diff line change @@ -13,12 +13,9 @@ void setup() {
13
13
}
14
14
15
15
void loop () {
16
- // Wait a few seconds between measurements
17
- delay (2000 );
16
+ delay (500 );
18
17
19
- // Reading temperature or humidity takes about 250 milliseconds!
20
18
float h = dht.readHumidity ();
21
- // Read temperature as Celsius (the default)
22
19
float t = dht.readTemperature ();
23
20
24
21
// Check if any reads failed and exit early (to try again)
You can’t perform that action at this time.
0 commit comments