finding a bug

This commit is contained in:
Daniel Ledda
2020-10-31 16:47:46 +01:00
parent b89ab0c439
commit e525149b1d

View File

@@ -59,9 +59,9 @@ func readDataFromDHT(pin *gpio.Pin) ([5]byte, error) {
time.Sleep(time.Second)
// Send start signal
pin.Output()
pin.PullDown()
pin.Low()
time.Sleep(1100 * time.Microsecond)
pin.PullUp()
pin.High()
time.Sleep(40 * time.Microsecond)
pin.Input()
// Wait for low high signal