File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -106,21 +106,21 @@ def _get_pulses_pulseio(self):
106
106
"""
107
107
pulses = array .array ('H' )
108
108
if _USE_PULSEIO :
109
- # The DHT type device use a specialize 1-wire protocol
110
- # The microprocessor first sends a LOW signal for a
111
- # specific length of time. Then the device sends back a
112
- # series HIGH and LOW signals. The length the HIGH signals
113
- # represents the device values.
114
- self .pulse_in .pause ()
115
- self .pulse_in .clear ()
116
- self .pulse_in .resume (self ._trig_wait )
117
-
118
- # loop until we get the return pulse we need or
119
- # time out after 1/4 second
120
- time .sleep (0.25 )
121
- self .pulse_in .pause ()
122
- while self .pulse_in :
123
- pulses .append (self .pulse_in .popleft ())
109
+ # The DHT type device use a specialize 1-wire protocol
110
+ # The microprocessor first sends a LOW signal for a
111
+ # specific length of time. Then the device sends back a
112
+ # series HIGH and LOW signals. The length the HIGH signals
113
+ # represents the device values.
114
+ self .pulse_in .pause ()
115
+ self .pulse_in .clear ()
116
+ self .pulse_in .resume (self ._trig_wait )
117
+
118
+ # loop until we get the return pulse we need or
119
+ # time out after 1/4 second
120
+ time .sleep (0.25 )
121
+ self .pulse_in .pause ()
122
+ while self .pulse_in :
123
+ pulses .append (self .pulse_in .popleft ())
124
124
return pulses
125
125
126
126
def _get_pulses_bitbang (self ):
You can’t perform that action at this time.
0 commit comments