File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# Maximum number of tries per timing
14
14
max_retries_per_time = 10
15
- # Minimum time from where to start testing
16
- min_time = 500
17
- # Maximum time on where to stop testing
15
+ # Minimum wait time from where to start testing
16
+ min_time = 1500
17
+ # Maximum wait time on where to stop testing
18
18
max_time = 2000
19
19
# Increment on time
20
20
time_increment = 100
21
21
22
22
# Variable to store all reads on a try
23
23
reads = {}
24
24
25
- print ("\n Initializing test.\n " , f"Total tries per trig_wait { max_retries_per_time } " )
25
+ initial_msg = f"""
26
+ \n Initializing test with the following parameters:
27
+
28
+ - Maximum retries per waiting time: { max_retries_per_time }
29
+ - Start time (ms): { min_time }
30
+ - End time (ms): { max_time }
31
+ - Increment time (ms): { time_increment }
32
+
33
+ This execution will try to read the sensor { max_retries_per_time } times
34
+ for { len (range (min_time , max_time , time_increment ))} different wait times values.
35
+
36
+ """
37
+ # Print initial message on the console.
38
+ print (initial_msg )
26
39
27
40
for milliseconds in range (min_time , max_time , time_increment ):
28
41
# Instantiate the DHT11 object.
You can’t perform that action at this time.
0 commit comments