testing bugs
This commit is contained in:
2
main.go
2
main.go
@@ -52,13 +52,13 @@ func readDataFromDHT(pin *gpio.Pin) ([5]byte, error) {
|
||||
receivedInput := [5]byte{0, 0, 0, 0, 0}
|
||||
// Setup
|
||||
pin.PullUp()
|
||||
time.Sleep(time.Second)
|
||||
|
||||
// Send start signal
|
||||
pin.Low()
|
||||
pin.Output()
|
||||
time.Sleep(1100 * time.Microsecond)
|
||||
pin.Input()
|
||||
pin.PullUp()
|
||||
time.Sleep(40 * time.Microsecond)
|
||||
|
||||
// Get Data
|
||||
|
||||
Reference in New Issue
Block a user