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}
|
receivedInput := [5]byte{0, 0, 0, 0, 0}
|
||||||
// Setup
|
// Setup
|
||||||
pin.PullUp()
|
pin.PullUp()
|
||||||
|
time.Sleep(time.Second)
|
||||||
|
|
||||||
// Send start signal
|
// Send start signal
|
||||||
pin.Low()
|
pin.Low()
|
||||||
pin.Output()
|
pin.Output()
|
||||||
time.Sleep(1100 * time.Microsecond)
|
time.Sleep(1100 * time.Microsecond)
|
||||||
pin.Input()
|
pin.Input()
|
||||||
pin.PullUp()
|
|
||||||
time.Sleep(40 * time.Microsecond)
|
time.Sleep(40 * time.Microsecond)
|
||||||
|
|
||||||
// Get Data
|
// Get Data
|
||||||
|
|||||||
Reference in New Issue
Block a user